source/js/date/TL.Date.js
function(scale) {
        for (var i = 0; i < TL.BigDate.SCALES.length; i++) {
            if (TL.BigDate.SCALES[i][0] == scale) {
                var floored = TL.BigDate.SCALES[i][2](this.data.date_obj);
                return new TL.BigDate(floored);
            }
        };

        throw new TL.Error("invalid_scale_err", scale);
    }
function(scale) {
        for (var i = 0; i < TL.BigDate.SCALES.length; i++) {
            if (TL.BigDate.SCALES[i][0] == scale) {
                var floored = TL.BigDate.SCALES[i][2](this.data.date_obj);
                return new TL.BigDate(floored);
            }
        };

        throw new TL.Error("invalid_scale_err", scale);
    }
function ( scale ) { for ( var i = 0 ; i < TL . BigDate . SCALES . length ; i ++ ) { if ( TL . BigDate . SCALES [ i ] [ 0 ] == scale ) { var floored = TL . BigDate . SCALES [ i ] [ 2 ] ( this . data . date_obj ) ; return new TL . BigDate ( floored ) ; } } ; throw new TL . Error ( "invalid_scale_err" , scale ) ; }
Return a new TL.BigDate which has been 'floored' at the given scale. @scale = string value from TL.BigDate.SCALES
Return a new TL . BigDate which has been floored at the given scale .