Monday, November 08, 2010 at 12:02 AM.

system.verbs.builtins.date.unixDateToDate

on unixDateToDate (unixdate) {
	<<Changes
		<<8/22/07; 7:29:47 PM by DW
			<<Convert a Unix date to a Frontier date. A Unix date is the number of seconds since the beginning of 1970. 
			<<The Flickr API uses Unix dates, to work with them we need to convert them.
	return (date.set (1, 1, 1970, 0, 0, 0) + number (unixdate))}
<<bundle //test code
	<<dialog.alert (unixDateToDate ("1187491483"))



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.