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-Asecretkeptsecret...40true savefalsenulltruenull -----falsefalsetruefalsetrue0 fontCourier12:spacewidth7from21xWidth7falsefalsetruefalsetrue0 fontHelvetica40:spacewidth4076from4116xWidth20falsefalsetruefalsetrue0 worldis1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsefalsetruefalsetrue0 startingWikiNavigatorfalsefalsetruefalsetrue0 status207onPROPFINDhttp://www.lively-kernel.org/repository/webwerkstatt/marko/DraftSecrets.xhtmlfalsefalsetruefalsetrue0 status207onPROPFINDhttp://www.lively-kernel.org/repository/webwerkstatt/marko/DraftSecrets.xhtmlfalsefalsetruefalsetrue0 http://www.lively-kernel.org/repository/webwerkstatt/anonymous_module_4loadedin387msfalsefalsetruefalsetrue0 http://www.lively-kernel.org/repository/webwerkstatt/anonymous_module_3loadedin4323msfalsefalsetruefalsetrue0 fontHelvetica14:spacewidth4from18xWidth7falsefalsetruefalsetrue0 fontHelvetica16:spacewidth4from20xWidth8falsefalsetruefalsetrue0 -------------------------------------------falsefalsetruefalsetrue0 invoke518351:WindowMorph([[undefined,undefined,641,323]]):Workspacefalsefalsetruefalsetrue0 fitWidthfailureonTextMorph.getCharBoundsfalsefalsetruefalsetrue0 fitWidthfailureonTextMorph.getCharBoundsfalsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=Sevt.isShiftDown()=falsekeyCode83falsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=Pevt.isShiftDown()=falsekeyCode80falsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=Pevt.isShiftDown()=falsekeyCode80falsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=Pevt.isShiftDown()=falsekeyCode80falsefalsetruefalsetrue0 statusmsg:ReferenceError:Can'tfindvariable:keepSecretLine:11falsefalsetruefalsetrue0 status:ReferenceError:Can'tfindvariable:keepSecretfalsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=Sevt.isShiftDown()=falsekeyCode83falsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=Pevt.isShiftDown()=falsekeyCode80falsefalsetruefalsetrue0 command=[evt.isShiftDown()=falsekeyCode91falsefalsetruefalsetrue0 command=Pevt.isShiftDown()=falsekeyCode80falsefalsetruefalsetrue0 -------------------------------------------falsefalsetruefalsetrue0 invoke1:WorldMorph([[undefined,undefined,1805.300048828125,3500.199951171875]])falsefalsetruefalsetrue0 fitWidthfailureonTextMorph.getCharBoundsfalsefalsetruefalsetrue0 fitWidthfailureonTextMorph.getCharBoundsfalsefalsetruefalsetrue0 statusmsg:serializing....falsefalsetruefalsetrue0 problemstoparsehttp://www.lively-kernel.org/repository/webwerkstatt/marko/DraftSecrets.xhtmlfalsefalsetruefalsetrue0 extendForSerialization[objectSVGDefsElement]falsefalsetruefalsetrue0840.500015 -1nullnulltrue0falsetruetrue false10.11 true false nullfalse nullfalse nullfalse nullfalsetruefalse true truetrue100truefalse truefalse050 nullfalsetruenull Consolefalsenulltruefalse false false falsenullfalsefalsenullnullnullnullfalse Wikicontroltruetrue keepSecret=function(){vartoken="Thisissecret:";varsecret="SECRET";varf1=function(){returntoken+secret;}returnf1;}myFunc=keepSecret();deletekeepSecret;myFunc;myFunc(); 12truetruefalsetruetrue false00.11 true false true nullfalsetruenull v1-Closuretosecretfalsenulltruefalse Xfalsenulltrue false false Mfalsenulltrue false false falsenulltrue false falsenullfalsefalsenullnullnullnullfalse null223