$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)]

  • 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.

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


Example:

Member04/04/2025
!!exec $timeStamp, $timestamp[yes]
Custom Command Bot 04/04/2025
1630841854895, 1630841854

Explanation of the example:

  • The first value 1630841854895 is the current time in milliseconds.
  • The second value 1630841854 is the current time in seconds because we specified yes in the function call.
Function difficulty: Easy
Tags: return time miliseconds