Example
var timeStamp = patio.TimeStamp(2009, 10, 10, 10, 10, 10); //=> '2009-11-10 10:10:10'
JSON.stringify(timeStamp); //=> '2009-11-10 10:10:10'
            

Constructor

Defined sql.js Source
function (y,m,d,h,min,s,ms){
   var args = argsToArray(arguments);
   if (args.length === 0) {
       this.date = new Date();
   } else if (isDate(y)) {
       this.date = y;
   } else {
       var date = new Date(1970, 0, 1, 0, 0, 0);
       isNumber(y) && date.setYear(y);
       isNumber(m) && date.setMonth(m);
       isNumber(d) && date.setDate(d);
       isNumber(h) && date.setHours(h);
       isNumber(min) && date.setMinutes(min);
       isNumber(s) && date.setSeconds(s);
       isNumber(ms) && date.setMilliseconds(ms);
       this.date = date;
   }
}
            

Documentation generated using coddoc.