Formats the given formatString with date/time information based on the given time.
If the formatString is *t, it will use local time and return a DateTable.
*t
If the formatString is !*t, it will use UTC time and return a DateTable.
!*t
Otherwise, it will format the string with the given specifiers (specifiers are based on the C function strftime)
The following specifiers are supported:
* indicates the value can vary depending on the current locale.
The string to format with either specifiers given, or the type of DateTable to return.
Optional
The timestamp to format the formatString from. Defaults to os.time
Formats the given formatString with date/time information based on the given time.
If the formatString is
*t
, it will use local time and return a DateTable.If the formatString is
!*t
, it will use UTC time and return a DateTable.Otherwise, it will format the string with the given specifiers (specifiers are based on the C function strftime)
The following specifiers are supported:
* indicates the value can vary depending on the current locale.