Date & Time
minute
$minute
The function $minute returns the current minute (from 0 to 59).
Syntax
$minute
Note: This function takes no parameters (passing one is an error).
Return Value
A number between 0 and 59 representing the current minute, with no leading zero (for example 5, not 05).
Examples
Simple Minute
Current minute: $minute
Combined hours and minutes
The time is $hour:$minute
Formatting with a leading zero
$if[$minute<10]
The time is $hour:0$minute
$else
The time is $hour:$minute
$endif
Notes
- The value is read in UTC unless a timezone was set earlier with
$time[timezone]. - Combined with
$hourand$second, this function allows you to create custom clocks.
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.