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);
};]]>
Draft40true
savefalsenulltruenull
-----falsetruefalsetrue0
fontCourier12:spacewidth1170from1182xWidth6falsetruefalsetrue0
fontHelvetica40:spacewidth4085from4125xWidth20falsetruefalsetrue0
worldis1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsetruefalsetrue0
startingWikiNavigatorfalsetruefalsetrue0
status207onPROPFINDhttp://www.lively-kernel.org/repository/webwerkstatt/projects/CodeDB/draft-marko.xhtmlfalsetruefalsetrue0
http://www.lively-kernel.org/repository/webwerkstatt/projects/CodeDB/../../anonymous_module_3loadedin109msfalsetruefalsetrue0
http://www.lively-kernel.org/repository/webwerkstatt/projects/CodeDB/../../anonymous_module_2loadedin1383msfalsetruefalsetrue0
Moduleloadcheckdone.44modulesloaded.falsetruefalsetrue0
statusmsg:serializing....falsetruefalsetrue0
fontHelvetica16:spacewidth1641from1657xWidth8falsetruefalsetrue0
problemstoparsehttp://www.lively-kernel.org/repository/webwerkstatt/projects/CodeDB/draft-marko.xhtmlfalsetruefalsetrue0
extendForSerialization[objectSVGDefsElement]falsetruefalsetrue01033.00001
32nulltrue0falsefalsenulltruetruefalse
false1truefalsenull
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100truefalse
truefalsenull050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
Wikicontroltruetrue
crb=newCodeDBRepositoryBrowser();crb.openIn(WorldMorph.current());/*oldNode=crb.nodesInPane('Pane1')[1]crb.nodesInPane('Pane1').detect(function(ea){returnea&&ea.target&&(ea.target==oldNode.target||(ea.target.eq&&ea.target.eq(oldNode.target)))});*/truetruefalse8truetruefalse
false1truefalsenulltruetruefalse
nullfalsetruenullfalse
Testingcodefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null215