Custom Command
FunctionsDate Functions

$dateStamp

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

Usage

$dateStamp[Return in Seconds (Yes/No)]

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 (enter Yes) or milliseconds (enter No or leave blank).

Example:

Member
9/5/2026
!!exec $dateStamp, $dateStamp[yes]
Custom Command
APP
9/5/2026
1630841854895, 1630841854

In this example, the first $dateStamp call returns the timestamp in milliseconds, while the second $dateStamp[yes] call returns the timestamp in seconds.

Function Difficulty: Easy

Tags: Return Time Milliseconds

On this page