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),
t: H < 12 ? "a" : "p",
tt: H < 12 ? "am" : "pm",
T: H < 12 ? "A" : "P",
TT: H < 12 ? "AM" : "PM",
Z: utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""),
o: (o > 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);
};]]>
savefalsenulltruenull
LivelyWikiChangeLog40true
newentryfalsenulltruefalsetrue
sortfalsenulltruefalsetrue
reversefalsenulltruefalsetrue
null
2010-08-05,Thu--Jens18
CodeUpdatetoKernelRec399518
NewFeatures:-automaticscrollingondraggingmorphstothebounds181
MigratedthisChangeLogtonewJournalCode18
truefalse
AnewMiniMapcanhelptoorientandnavigateinpagesthatarebiggerthanthescreen2true16
truefalse
dragamorphtothecornerofthewindowtoscrollit16true1
2010-07-08,Thu--JensCodeUpdatetoKernelRev3926182
2010-07-01,Thu--Jens18
-codeupdate-createdsandbox/sandbox.xhtml18
1
2010-05-17,Mon--Jens-CodeUpdate-NewScaleMorph182true
2010-04-26,Mon--JensupdatedCreateUserDirectorysothatthereisalinktothenewcreatedhomedirectory.182
2010-04-21,Wed--Jensupdatedlively,Testsandcop182
2010-04-14,Wed--JensmotivatedbyRobert'snewcreateuserhomepagescriptI:-createdthisnewChangeLogforLivelyWiki.Itisacopyofour(notsopublic)JournalsatWebWerkstatt.-createdadirectoryfordocumentation-movedtheoldonlinetutorialthere186
true
addtojournaltruenulltruenullfalse
nullnull1001365.2111241180112
Wikicontroltruetrue
null
null1null
media/truetruetrue
Uploading:LivelyMiniMap.pngSent:22.40Kbof22.40KbTotalSent:22.40Kbof11.20KbServerResponse:Resource/repository/lively-wiki/changelog/media/LivelyMiniMap.pnghasbeencreated.truetrue5
nullfalsetruenullfalse
Latestchangesfalsenullfalse
false
false
falsenullfalse
Refreshfalsenulltruefalsetrue
Filenamefilterfalsenulltruefalsetrue
changelog.xhtml(20635--jenslincke)falsetruefalsetrue0false
sandbox_03.xhtml(20634--jenslincke)falsetruefalsetrue0false
interaction.xhtml(20620--jenslincke)falsetruefalsetrue0false
Snippets.xhtml(20616--jenslincke)falsetruefalsetrue0false
FabricExperiments.xhtml(20605--jenslincke)falsetruefalsetrue0false
BrowserExperiments.xhtml(20574--Dan)falsetruefalsetrue0false
NewHomePageOnLively.xhtml(20547--mzimmerm)falsetruefalsetrue0false
sandbox.xhtml(20514--jenslincke)falsetruefalsetrue0false
pshouse_test2.xhtml(20488--robertkrahn)falsetruefalsetrue0false
test2.xhtml(20433--pshouse)falsetruefalsetrue0false
spriteTest.xhtml(20431--pshouse)falsetruefalsetrue0false
test.xhtml(20425--pshouse)falsetruefalsetrue0false
HelloWorld.xhtml(20405--pshouse)falsetruefalsetrue0false
WorldTemplate.xhtml(20387--mzimmerm)falsetruefalsetrue0false
TimeTracker.xhtml(20385--pshouse)falsetruefalsetrue0false
WorldTemplate.xhtml(20384--pshouse)falsetruefalsetrue0false
widgets.xhtml(20321--jenslincke)falsetruefalsetrue0false
ProgressBar.xhtml(20318--jenslincke)falsetruefalsetrue0false
StyleChooser.xhtml(20249--jenslincke)falsetruefalsetrue0false
weather.xhtml(20237--jenslincke)falsetruefalsetrue0false
clocks.xhtml(20231--jenslincke)falsetruefalsetrue0false
FabrikPlayground.xhtml(20219--jenslincke)falsetruefalsetrue0false
FabrikALUExample.xhtml(20215--jenslincke)falsetruefalsetrue0false
livelyScriptingTutorial.xhtml(20168--pshouse)falsetruefalsetrue0false
SystemBrowser.xhtml(20158--jenslincke)falsetruefalsetrue0false
mockups_01.xhtml(20154--jenslincke)falsetruefalsetrue0false
sandbox_01.xhtml(20130--jenslincke)falsetruefalsetrue0false
Zooming.xhtml(20118--jenslincke)falsetruefalsetrue0false
sandbox_02.xhtml(20113--jenslincke)falsetruefalsetrue0false
sandbox.xhtml(20077--jenslincke)falsetruefalsetrue0false
Graffle.xhtml(20023--jenslincke)falsetruefalsetrue0false
TextEditing.xhtml(20018--jenslincke)falsetruefalsetrue0false
jens.xhtml(20009--jenslincke)falsetruefalsetrue0false
scratch4.xhtml(19993--philmaker)falsetruefalsetrue0false
emailForwardingWorkflowDiagram.xhtml(19985--mzimmerm)falsetruefalsetrue0false
example.xhtml(19938--robertkrahn)falsetruefalsetrue0false
BlackLineDemoLivelyKernel.xhtml(19899--mzimmerm)falsetruefalsetrue0false
milans_fabrik_browser.xhtml(19844--mzimmerm)falsetruefalsetrue0false
livelyScriptingTutorial6.xhtml(19842--mzimmerm)falsetruefalsetrue0false
milans_fabric_http.xhtml(19840--mzimmerm)falsetruefalsetrue0false
livelyScriptingTutorial5.xhtml(19838--mzimmerm)falsetruefalsetrue0false
livelyScriptingTutorial4.xhtml(19837--mzimmerm)falsetruefalsetrue0false
livelyScriptingTutorial2.xhtml(19832--mzimmerm)falsetruefalsetrue0false
milans_tutorial.xhtml(19831--mzimmerm)falsetruefalsetrue0false
milans_fabric.xhtml(19829--mzimmerm)falsetruefalsetrue0false
rk-wikiVis-october2.xhtml(19828--robertkrahn)falsetruefalsetrue0false
rk-2-architecture.xhtml(19827--robertkrahn)falsetruefalsetrue0false
myworld1.xhtml(19823--robertkrahn)falsetruefalsetrue0false
myworld.xhtml(19806--mzimmerm)falsetruefalsetrue0false
myworld.xhtml(19803--mzimmerm)falsetruefalsetrue0false421-1nullnullnulltruetruetrue
00.11truetruetrue
truefalsenullnullnullnullfalse
null177