GetTimestamp -- get timestamp (V7.0)
s = GetTimestamp([unixtime])
This function returns a timestamp. By default, this is the time in seconds since Hollywood was started. If unixtime is True, it will return the time that has elapsed since the Unix epoch which starts on January 1st, 1970, 00:00:00 UTC. The time is returned in seconds as a fractional number, allowing for sufficient precision.

GetTimestamp() is especially useful in connection with Hollywood's event handler. All event messages will contain a field named Timestamp which contains the timestamp the event was generated. If you compare this time stamp against the return value of GetTimestamp(), you can filter out very old events, for example. See InstallEventHandler for details.

To convert a timestamp into a date, you can use the TimestampToDate() function. To convert a date into a timestamp, use the DateToTimestamp() function.

optional: set this to True to return the timestamp relative to the Unix epoch instead of relative to Hollywood's start (defaults to False)
timestamp in seconds as a fractional number

Show TOC