lib/ui/charting/i18n.js
function DateTime(date) {
        if (date instanceof DateTime)
            return date;
        if (_i18n_locale.locale_name == 'en_DEBUG') 
            date = new Date(3333, 10, 22, 11, 22, 33, 123);
        if (date instanceof Date) {
            this.date = date;
            this.hour = date.getHours();
            this.minute = date.getMinutes();
            this.second = date.getSeconds();
            this.microsecond = 0;
            this.year = date.getFullYear();
            this.month = date.getMonth()+1;
            this.day = date.getDate();
        } else {
            for(var k in date) {
                this[k] = date[k];
            }
        }
    }
function DateTime(date) {
        if (date instanceof DateTime)
            return date;
        if (_i18n_locale.locale_name == 'en_DEBUG') 
            date = new Date(3333, 10, 22, 11, 22, 33, 123);
        if (date instanceof Date) {
            this.date = date;
            this.hour = date.getHours();
            this.minute = date.getMinutes();
            this.second = date.getSeconds();
            this.microsecond = 0;
            this.year = date.getFullYear();
            this.month = date.getMonth()+1;
            this.day = date.getDate();
        } else {
            for(var k in date) {
                this[k] = date[k];
            }
        }
    }
function DateTime ( date ) { if ( date instanceof DateTime ) return date ; if ( _i18n_locale . locale_name == 'en_DEBUG' ) date = new Date ( 3333 , 10 , 22 , 11 , 22 , 33 , 123 ) ; if ( date instanceof Date ) { this . date = date ; this . hour = date . getHours ( ) ; this . minute = date . getMinutes ( ) ; this . second = date . getSeconds ( ) ; this . microsecond = 0 ; this . year = date . getFullYear ( ) ; this . month = date . getMonth ( ) + 1 ; this . day = date . getDate ( ) ; } else { for ( var k in date ) { this [ k ] = date [ k ] ; } } }
Wrapper object for JS Date objects
Wrapper object for JS Date objects