TolliumUser::FormatTime (open)
Format a given UTC time according to the user's preferences
Syntax
LOADLIB "mod::tollium/lib/users.whlib";
STRING FUNCTION FormatTime(DATETIME value, STRING precision, BOOLEAN stored_utc)
Parameters
DATETIME value
The time to format
STRING precision
Use either "milliseconds", "seconds" or "minutes"
BOOLEAN stored_utc
True if date is stored in UTC and should be converted to the user's local time
Return value
STRING
The formatted time
Description
First, the given DATETIME value is converted to the user's local date and time, then it is formatted using the user's timeformat setting.