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);
};]]>
Draft40true
BrowserstatusMessage:Savinglocalrequirements...SuccessfullysavedSuccessfullyevaluatedlocalrequirements2falsetruefalse0
updated2browsersin0.044sfalsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([[0,0,1400,768]])falsetruefalse0
status200onGEThttp://lively-kernel.org/repository/webwerkstatt/projects/TeX/draft-test.xhtmlfalsetruefalse0
problemstoparsehttp://lively-kernel.org/repository/webwerkstatt/projects/TeX/draft-test.xhtmlfalsetruefalse0
extendForSerializationundefinedfalsetruefalse0Warn:unexpected:#<Relay{{"SourceString":"SourceString","StatusMessage":"StatusMessage","RootFilters":"RootFilters","Pane1Content":"Pane1Content","Pane1Selection":"Pane1Selection","Pane1Menu":"Pane1Menu","Pane1Filters":"Pane1Filters","Pane2Content":"Pane2Content","Pane2Selection":"Pane2Selection","Pane2Menu":"Pane2Menu","Pane2Filters":"Pane2Filters"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarrayitemListof335434:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof335434:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof335434:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof335434:FilterableListMorph([[1,1,295,218]])Warn:unexpected:#<Relay{{"List":"-Pane1Content","Selection":"Pane1Selection","Menu":"-Pane1Menu"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>Warn:unexpected:#<Relay{{"List":"-Pane2Content","Selection":"Pane2Selection","Menu":"-Pane2Menu"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>Warn:unexpected:#<Relay{{"Text":"SourceString"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>Warn:unexpected:#<Relay{{"SourceString":"SourceString","StatusMessage":"StatusMessage","RootFilters":"RootFilters","Pane1Content":"Pane1Content","Pane1Selection":"Pane1Selection","Pane1Menu":"Pane1Menu","Pane1Filters":"Pane1Filters","Pane2Content":"Pane2Content","Pane2Selection":"Pane2Selection","Pane2Menu":"Pane2Menu","Pane2Filters":"Pane2Filters","Pane3Content":"Pane3Content","Pane3Selection":"Pane3Selection","Pane3Menu":"Pane3Menu","Pane3Filters":"Pane3Filters"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.SystemBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.SystemBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.SystemBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.SystemBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.SystemBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.SystemBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.SystemBrowser:[objectSVGElement]>ERRORSerializingiteminarrayitemListof335541:FilterableListMorph([[1,1,171,174]])ERRORSerializingiteminarrayitemListof335541:FilterableListMorph([[1,1,171,174]])Warn:unexpected:#<Relay{{"List":"-Pane1Content","Selection":"Pane1Selection","Menu":"-Pane1Menu"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>ERRORSerializingiteminarrayitemListof335553:FilterableListMorph([[1,1,202,190.5]])ERRORSerializingiteminarrayitemListof335553:FilterableListMorph([[1,1,202,190.5]])ERRORSerializingiteminarrayitemListof335553:FilterableListMorph([[1,1,202,190.5]])ERRORSerializingiteminarrayitemListof335553:FilterableListMorph([[1,1,202,190.5]])Warn:unexpected:#<Relay{{"List":"-Pane2Content","Selection":"Pane2Selection","Menu":"-Pane2Menu"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>Warn:unexpected:#<Relay{{"List":"-Pane3Content","Selection":"Pane3Selection","Menu":"-Pane3Menu"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>Warn:unexpected:#<Relay{{"Text":"SourceString"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>wha',norawnodeon#<ModelPlug{setValue:action,setIsActive:setIsActive,getIsActive:getIsActive}>826
-1nullnulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100truefalse
truefalse050"]]]>
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
ThisisaTextMorph
nullfalsetruenullfalse
LocalCodeBrowserfalsenullfalse
false
false
falsenullfalse
localrequirements[doit]falsetruefalse0false
initializer[doit]falsetruefalse0false
JournalEntryMorph[class]falsetruefalse0false
dateformat[doit]falsetruefalse0false310-1nullnullnulltruetruetrue
1true
null
null
null
nulltruetrue
-----falsetruefalse0false310
-1nullnullnulltruetruetrue
1true
null
null
null
nulltruetrue
20null
truetrue2000000
truetrue
1truetruetrue
20null
truetruetruetrue
1truetruetrue
Browseworld...falsenullfalsetrue
Pushchangesbackfalsenullfalsetrue
Refreshfalsenullfalsetrue
Evalonfalsenullfalsetrue
Sortfalsenullfalsetrue
truetruefalsenullnullnullnullfalse
100018.827699899288802Wikicontroltrue
nulltruemodule().load()truetruefalsetruetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
nullfalsetruenullfalse
Localcode:localrequirements[doit]falsenullfalse
false
false
falsenullfalse
http://lively-kernel.org/repository/webwerkstatt/truetruetruetruetrue
truetrue
1truetruetrue
Core.js(notparsed)falsetruefalse0false
Localcodefalsetruefalse0false1861nullnulltruetruetrue
1true
null
null
null
nulltruetrue
localrequirements[doit]falsetruefalse0false
initializer[doit]falsetruefalse0false
JournalEntryMorph[class]falsetruefalse0false
dateformat[doit]falsetruefalse0false2170nullnulltruefalsenullnulltruetrue
1true
null
null
null
nulltruetrue
-----falsetruefalse0false217
-1nullnullnulltruetruetrue
1true
null
null
null
nulltruetrue
20null
['lively.FileUploadWidget','cop.Workspace','lively.ide','projects.TeX.Tex']truetrue2000000
truetrue
1truetruetrue
20null
truetruetruetrue
1truetruetrue
Addmodulefalsenullfalsetrue
Loadallfalsenullfalsetrue
LineNofalsenullfalsetrue
Refreshfalsenullfalsetrue
Evalonfalsenullfalsetrue
Sortfalsenullfalsetrue
Viewas...falsenullfalse
truetrue
nullfalsenullnullnullnullfalsenull181