Runtime Type : Types : TimeFormat

From $1

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 Summary
format Formats the data using the format string.
getDefaultFormatStrs function description
setDayNames Sets the string value for a numeric (zero-based) day of the week.
setMonthNames Sets the string to use when pretty-printing a month from a zero-based numeric month.
setTimeModifierNames Sets the string to use when pretty-pringing the 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

Tags:
 
Images (0)
 
Comments (0)
You must login to post a comment.