$dateStamp
Returns the current Unix timestamp (the number of milliseconds that have elapsed since January 1, 1970 UTC).
$dateStamp[Return in Seconds (Yes/No)]
Usage: This function allows you to retrieve the current timestamp in either milliseconds or seconds.
Return in Seconds (Yes/No)
: Specify whether you want the timestamp returned in seconds (enterYes
) or milliseconds (enterNo
or leave blank).
Example:
In this example, the first $dateStamp
call returns the timestamp in milliseconds, while the second $dateStamp[yes]
call returns the timestamp in seconds.