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 valueThe time to format
STRING precisionUse either "milliseconds", "seconds" or "minutes"
BOOLEAN stored_utcTrue if date is stored in UTC and should be converted to the user's local time
Return value
STRINGThe 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.