Monday, November 08, 2010 at 12:01 AM.
system.verbs.apps.s3.simpleDb.getTimeStamp
on getTimeStamp (when=clock.now ()) { <<Changes <<12/30/07; 6:43:20 PM by DW <<Created. <<http://www.w3.org/TR/xmlschema-2/#dateTime <<"2007-12-31T02:36:22.000Z" on pad (num) { return (string.padwithzeros (num, 2))}; local (day, month, year, hour, minute, second, tz = date.getCurrentTimeZone (), s); date.get (when - tz, @day, @month, @year, @hour, @minute, @second); s = year + "-" + pad (month) + "-" + pad (day) + "T" + pad (hour) + ":" + pad (minute) + ":" + pad (second) + ".000Z"; return (s)}; bundle { //test code dialog.alert (getTimeStamp ())}
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.