Example
  1. var year = patio.Year(2009); //=> 2009
  2. JSON.stringify(year)l //=> 2009

Constructor

Defined sql.js Source
  1. function (y){
  2. this.date = isUndefined(y) ? new Date() : isDate(y) ? y : new Date(y, 0, 1, 0, 0, 0);
  3. }

Documentation generated using coddoc.