Name
TimestampToDate -- convert timestamp to date (V7.1)
Synopsis
d$ = TimestampToDate(s[, unixtime])
Function
This function can be used to convert a timestamp into a date string in Hollywood's standard date format, i.e. dd-mmm-yyyy hh:mm:ss. See CompareStr for details. The optional argument unixtime specifies whether or not the timestamp is measured from the beginning of the Unix epoch (i.e. January 1st, 1970, 00:00:00 UTC) or from the time when Hollywood was started. By default, timestamps are measured from the time when Hollywood was started.

To convert a date back into a timestamp, use the DateToTimestamp() function. See DateToTimestamp for details.

Inputs
s
timestamp to convert into a date
unixtime
optional: if set to True the timestamp is interpreted as relative to the beginning of the Unix epoch; otherwise it is relative to the time when Hollywood was started (defaults to False)
Results
d$
date in Hollywood's standard date format

Show TOC