Lively Kernel canvas
* MIT license
*
* Includes enhancements by Scott Trenda
* and Kris Kowal
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.]]> 99 ? Math.round(L / 10) : L),
]]> 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4),
S: ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
};
return mask.replace(token, function ($0) {
return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
});
};
}();
// Some common format strings
dateFormat.masks = {
"default": "ddd mmm dd yyyy HH:MM:ss",
shortDate: "m/d/yy",
mediumDate: "mmm d, yyyy",
longDate: "mmmm d, yyyy",
fullDate: "dddd, mmmm d, yyyy",
shortTime: "h:MM TT",
mediumTime: "h:MM:ss TT",
longTime: "h:MM:ss TT Z",
isoDate: "yyyy-mm-dd",
isoTime: "HH:MM:ss",
isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
};
// Internationalization strings
dateFormat.i18n = {
dayNames: [
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
],
monthNames: [
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
]
};
// For convenience...
Date.prototype.format = function (mask, utc) {
return dateFormat(this, mask, utc);
};]]>
Draft-Emailing40true
savefalsenulltruenull
Spreadthewor(l)d!falsenulltruefalsetruenull
Wikicontroltruetrue
invoke518892:ScriptableButtonMorph([[undefined,undefined,130,30]])falsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
-------------------------------------------falsetruefalsetrue0
invoke518892:ScriptableButtonMorph([[undefined,undefined,130,30]])falsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
-------------------------------------------falsetruefalsetrue0
invoke518892:ScriptableButtonMorph([[undefined,undefined,130,30]])falsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
statusmsg:serializing....falsetruefalsetrue0
problemstoparsehttp://www.lively-kernel.org/repository/webwerkstatt/marko/DraftEmailMe.xhtmlfalsetruefalsetrue0
extendForSerialization[objectSVGDefsElement]falsetruefalsetrue0
stripmorph:[objectSVGGElement]falsetruefalsetrue0
settingbackkeyboardfocusto250472:ScriptableButtonMorph([[undefined,undefined,70,30]])falsetruefalsetrue0
statusmsg:falsetruefalsetrue0
enableProgressfalsetruefalsetrue0
successpublishingworldathttp://www.lively-kernel.org/repository/webwerkstatt/marko/DraftEmailMe.xhtml,status204falsetruefalsetrue0
finishedsavingfalsetruefalsetrue0
statusmsg:worldsavedtoundefinedin3753ms(682msserialization)1falsetruefalsetrue0
statusmsg:ReferenceError:Can'tfindvariable:WorldLine:11falsetruefalsetrue0
status:ReferenceError:Can'tfindvariable:Worldfalsetruefalsetrue0
undefinedfalsetruefalsetrue0
1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsetruefalsetrue0
Morph.inspect(){try{returnthis.toString();}catch(err){return"#<inspect...falsetruefalsetrue0
1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsetruefalsetrue0
-------------------------------------------falsetruefalsetrue0
invoke1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsetruefalsetrue0
-------------------------------------------falsetruefalsetrue0
invoke1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
undefinedfalsetruefalsetrue0
-------------------------------------------falsetruefalsetrue0
invoke1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
MynewLivelyworldfalsetruefalsetrue0
-------------------------------------------falsetruefalsetrue0
invoke518892:ScriptableButtonMorph([[undefined,undefined,130,30]])falsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalsetrue0
statusmsg:serializing....falsetruefalsetrue0
problemstoparsehttp://www.lively-kernel.org/repository/webwerkstatt/marko/DraftEmailMe.xhtmlfalsetruefalsetrue0
extendForSerialization[objectSVGDefsElement]falsetruefalsetrue0806.500015
31nullnulltrue0falsefalsetruetrue
false10.11
true
false
nullfalse
nullfalse
nullfalse
nullfalsetruefalse
true
document.titletruetrue100truefalse
true501falsenull
nullfalsetruenull
Consolefalsenulltruefalse
false
falsenullfalsefalsenullnullnullnullfalse
null223