rem: MochiKit.DateTime.toISOTimestamp = function (date, realISO/* = false*/) { /***  Convert a Date object to something that's ALMOST but not quite an ISO 8601 timestamp.  If it was a proper ISO timestamp it would be:  YYYY-MM-DDThh:mm:ssZ  However, we see junk in SQL and other places that looks like this:  YYYY-MM-DD hh:mm:ss  So, this function returns the latter form, despite its name, unless you pass true for realISO.  ***/ if (typeof(date) == "undefined" || date == null) { return null; } var sep = realISO ? "T" : " "; var foot = realISO ? "Z" : ""; if (realISO) { date = new Date(date.getTime() + (date.getTimezoneOffset() * 60000)); } return MochiKit.DateTime.toISODate(date) + sep + MochiKit.DateTime.toISOTime(date, realISO) + foot; 
add: MochiKit.DateTime.toISOTimestamp=function(date,_219){ if(typeof (date)=="undefined"||date==null){ return null; } var sep=_219?"T":" "; var foot=_219?"Z":""; if(_219){ date=new Date(date.getTime()+(date.getTimezoneOffset()*60000)); } return MochiKit.DateTime.toISODate(date)+sep+MochiKit.DateTime.toISOTime(date,_219)+foot; 
context: MochiKit.DateTime.toISOTimestamp = function (date, realISO/* = false*/) {    /***        Convert a Date object to something that's ALMOST but not quite an        ISO 8601 timestamp.  If it was a proper ISO timestamp it would be:            YYYY-MM-DDThh:mm:ssZ        However, we see junk in SQL and other places that looks like this:            YYYY-MM-DD hh:mm:ss        So, this function returns the latter form, despite its name, unless        you pass true for realISO.    ***/    if (typeof(date) == "undefined" || date == null) {        return null;    }    var sep = realISO ? "T" : " ";    var foot = realISO ? "Z" : "";    if (realISO) {        date = new Date(date.getTime() + (date.getTimezoneOffset() * 60000));    }    return MochiKit.DateTime.toISODate(date) + sep + MochiKit.DateTime.toISOTime(date, realISO) + foot;};
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js