Custom Command
FunctionsDate Functions

$timeStamp

Returns the current Unix timestamp (the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC).

Think of it as: Getting a numerical representation of the current date and time.

Usage

$timeStamp[Return in Seconds (Yes/No);Offset (Optional)]
  • Return in Seconds (Yes/No): This is an optional argument.
    • If set to Yes, the function will return the timestamp in seconds instead of milliseconds.
    • If set to No (or left blank), the function will return the timestamp in milliseconds.
  • Offset: This is an optional argument that can return an offset value from the current timestamp, like +1d, -2h
    • valid examples: 1h or +1h for adding 1 hour, -1h to substract 1 hour

Alias: This function is an alias for $dateStamp. You can use either one interchangeably.

Example:

Member
9/5/2026
!!exec $timeStamp, $timestamp[yes], $timestamp[yes;+1h], $timestamp[yes;-1h]
Custom Command
APP
9/5/2026
1788624741387, 1788624741, 1788628341, 1788621141

Function difficulty: Easy

Tags: Return Time Miliseconds

On this page