$time
$time returns the current time in a specified format.
Usage
$time[format;isAmPm?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| format | string | The output format using {hour}, {minute}, {second}, {am} placeholders. | true |
| isAmPm? | boolean | Whether to use 12-hour format with AM/PM. Default: false | false |
Example(s)
This will return the current time in HH:MM:SS format:
1client.command({2 name: "currentTime",3 code: `4 $time[{hour}:{minute}:{second}]5 `6});This will return the current time in 12-hour format with AM/PM:
1client.command({2 name: "currentTimeAMPM",3 code: `4 $time[{hour}:{minute}:{second} {am};true]5 `6});