Time & Date
P_readabletime
Syntax
@readabletime({unix_time})
Use Case:
Converts a Unix timestamp into a human-readable local time string (ddd MMM dd HH:mm:ss yyyy).
Arguments:
- {unix_time}: The Unix epoch seconds (e.g. from @time).
Examples:
- /echo @readabletime(@time()) (Outputs ‘Mon May 02 11:06:40 2026’)
See Also:
@time
P_time
Syntax
@time()
Use Case:
Returns the current UTC time as a Unix timestamp (seconds since Epoch).
Arguments:
- (None)
Examples:
- /echo Epoch: @time() (Outputs current Unix seconds)
See Also:
(None)
P_timetoday
Syntax
@timetoday({epoch})
Use Case:
Extracts the day of the month (1-31) from a Unix epoch timestamp.
Arguments:
- {epoch}: The Unix timestamp.
Examples:
- /echo Day: @timetoday(@time())
See Also:
@timetomonth, @timetoyear
P_timetodayofweek
Syntax
@timetodayofweek({epoch})
Use Case:
Extracts the day of the week (0-6) from a Unix epoch timestamp, where 0 is Sunday.
Arguments:
- {epoch}: The Unix timestamp.
Examples:
- /echo DayOfWeek: @timetodayofweek(@time())
See Also:
@timetoday
P_timetohour
Syntax
@timetohour({epoch})
Use Case:
Extracts the hour (0-23) from a Unix epoch timestamp.
Arguments:
- {epoch}: The Unix timestamp.
Examples:
- /echo Hour: @timetohour(@time())
See Also:
@time, @timetominute
P_timetominute
Syntax
@timetominute({epoch})
Use Case:
Extracts the minute (0-59) from a Unix epoch timestamp.
Arguments:
- {epoch}: The Unix timestamp.
Examples:
- /echo Minute: @timetominute(@time())
See Also:
@time, @timetohour
P_timetomonth
Syntax
@timetomonth({epoch})
Use Case:
Extracts the month (1-12) from a Unix epoch timestamp.
Arguments:
- {epoch}: The Unix timestamp.
Examples:
- /echo Month: @timetomonth(@time())
See Also:
@timetoday, @timetoyear
P_timetosecond
Syntax
@timetosecond({epoch})
Use Case:
Extracts the second (0-59) from a Unix epoch timestamp.
Arguments:
- {epoch}: The Unix timestamp.
Examples:
- /echo Second: @timetosecond(@time())
See Also:
@time
P_timetoyear
Syntax
@timetoyear({epoch})
Use Case:
Extracts the 4-digit year from a Unix epoch timestamp.
Arguments:
- {epoch}: The Unix timestamp.
Examples:
- /echo Year: @timetoyear(@time())
See Also:
@timetoday, @timetomonth