epoch-to-date: func [ "Returns a date from unix time (epoch) format." value [integer!] "Number of seconds since 1-Jan-1970" /local date time ][ value: to time! value date: 1-Jan-1970 + round/down value / 24:0:0 time: value // 24:0:0 add now/zone to date! rejoin [date "/" time now/zone] ]
You need to create an account or log in to post comments to this site.