s = GetTimestamp([type])
type
parameter allows you to specify what
kind of timestamp you'd like to get. This can be one of the following:
#TIMESTAMP_START:
#TIMESTAMP_UNIX:
#TIMESTAMP_RAW
instead (see below).
#TIMESTAMP_RAW:
#TIMESTAMP_UNIX
depends on the system clock because
it returns the number of seconds since January 1st, 1970 so you could be in trouble in case
the system clock is changed between two GetTimestamp()
calls. (V9.1)
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.
#TIMESTAMP_START
)