Custom Command
FunctionsDate Functions

$hour

This command returns the current hour (in 24-hour format).

Usage

$hour

Example:

This example shows how to use the $hour command in a custom command.


!!exec $hour

19

Timezone Considerations

Date functions use the UTC timezone by default. You can change the timezone for your bot. Learn More

Function Difficulty: Easy

Tags: Hour

On this page