$getTimestamp

Returns current unix timestamp.

Usage

There are two usages of $getTimestamp function :

Usage #1

$getTimestamp

Returns unix timestamp in seconds.

Example

$nomention
Unix Timestamp: $getTimestamp

example

Usage #2

$getTimestamp[Time unit]
  • Time unit - Sets timestamp time unit

    📝 Time unit value can either be :

    • s (seconds)
    • ms (milliseconds)
    • ns (nanoseconds)

Example

$nomention
Unix Timestamp
 In Seconds - $getTimestamp[s]
 In Milliseconds - $getTimestamp[ms]
 In Nanoseconds - $getTimestamp[ns]

Screenshot_20220904_150511