Monday, November 08, 2010 at 12:03 AM.
system.verbs.builtins.html.data.standardMacros.secsToChristmas
on secsToChristmas () {
local (day, month, year, hour, minute, second, xmas);
date.get (clock.now (), @day, @month, @year, @hour, @minute, @second);
xmas = number (date.set (25, 12, year, 0, 0, 0));
<<dialog.alert (date (xmas))
now = number (clock.now ());
return (string.addCommas (xmas - now))};
bundle { <<test code
dialog.alert (secsToChristmas ())}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.