Set of functions to format date and time.
Back to Runtime Types
Inherits From
root→Object→TimeFormat
Fields
| string fomatStr | String used for formatting date/time. |
Function Detail
format
Formats the data using the format string.
Syntax
format( [in] Data field, [out] string result )
Parameters
- field
- the data to format
- result
- the resulting formatted date/time
getDefaultFormatStrs
function description
Syntax
getDefaultFormatStrs( [in] Data context, [out] Collection(string) list )
Parameters
- context
- argument description
- list
- argument description
setDayNames
Sets the string value for a numeric (zero-based) day of the week.
Syntax
setDayNames( [in] Collection(string) fullNames, [in] Collection(string) abrieviatedNames )
Parameters
- fullNames
- numeric day of the week
- abrieviatedNames
- the string to use when pretty-printing this day of the week
setMonthNames
Sets the string to use when pretty-printing a month from a zero-based numeric month.
Syntax
setMonthNames( [in] Collection(string) fullNames, [in] Collection(string) abrieviatedNames )
Parameters
- fullNames
- the numeric month (zero-based) to set the string for
- abrieviatedNames
- the string value to use when pretty-printing the month
setTimeModifierNames
Sets the string to use when pretty-pringing the time.
Syntax
setTimeModifierNames( [in] Collection(string) fullNames, [in] Collection(string) abrieviatedNames )
Parameters
- fullNames
- true if after noon, false if before noon
- abrieviatedNames
- the string to use when pretty printing AM or PM