function Simple() {

  // If arguments passed in, try and parse the simple date
  if(arguments.length > 0) {
    this._parse(arguments[0]);
  } else {
    // Note that all dates and times are UTC internally!
    var date = new Date();
    this._year = date.getUTCFullYear();
    this._month = date.getUTCMonth();
    this._day = date.getUTCDay();
    this._hours = date.getUTCHours();
    this._minutes = date.getUTCMinutes();
    this._seconds = date.getUTCSeconds();
    this._tzHours = 0;
    this._tzMinutes = 0;
  }
}
function Simple() {

  
  if(arguments.length > 0) {
    this._parse(arguments[0]);
  } else {
    
    var date = new Date();
    this._year = date.getUTCFullYear();
    this._month = date.getUTCMonth();
    this._day = date.getUTCDay();
    this._hours = date.getUTCHours();
    this._minutes = date.getUTCMinutes();
    this._seconds = date.getUTCSeconds();
    this._tzHours = 0;
    this._tzMinutes = 0;
  }
}
function Simple ( ) { // If arguments passed in, try and parse the simple date if ( arguments . length > 0 ) { this . _parse ( arguments [ 0 ] ) ; } else { // Note that all dates and times are UTC internally! var date = new Date ( ) ; this . _year = date . getUTCFullYear ( ) ; this . _month = date . getUTCMonth ( ) ; this . _day = date . getUTCDay ( ) ; this . _hours = date . getUTCHours ( ) ; this . _minutes = date . getUTCMinutes ( ) ; this . _seconds = date . getUTCSeconds ( ) ; this . _tzHours = 0 ; this . _tzMinutes = 0 ; } }
The simplest representation of a date.
The simplest representation of a date .