The "timeFormat" property specifies the format of a time or a datetime embedded in a JSON string. It is an optional string that defaults to "hh.mm.am/pm". The server uses it when it needs to transform or convert a time or datetime embedded in a JSON string into a FairCom time or timestamp. It also uses it when it needs to convert a time or datetime field value into a time embedded in a JSON string.
It is an enumerated string with one of the following values: "hh.mm.ss.ttt", "hh.mm.am/pm", "hh.mm.ss.am/pm", "hh.mm.ss", "hh.mm", "hhmm", "iso8601", and "utc".
The default value for "timeFormat" is the "defaultTimeFormat" property defined in the "createSession" or "alterSession" actions. If it is omitted there, it defaults to the value of the "defaultTimeFormat" property in the <faircom>/config/services.json file. If it is not there, the FairCom server defaults it to "iso8601" because the ISO8601 date is the defacto standard in JSON.
The enumerated string defines how the server parses a time in a JSON string. The following key explains the parts of each enumerated value:
-
hhis a one- or two-digit hour (0-24). -
mmis a two-digit minute (00-59). -
ssis a two-digit second (00-59). -
tttis a fraction of a second with up to 3 digits of precision (.0-.999). -
.represents one character that can be one of the following values::,.,-, or/. -
"utc","iso8601", and"hh.mm.ss.ttt"are the same.
UTC datetime formatCoordinated Universal Time (UTC) is an industry-standard for dates and times that uses the ISO8601 datetime format: "ccyy-mm-ddThh:mi:ss.fffz" or "ccyy-mm-ddThh:mi:ss.fff±hh:mi":
- Variable parts
-
ccyyis a four-digit year. -
mmis a two-digit month (01-12). -
ddis a two-digit day of the month (01-31). -
hhis a two-digit hour (00-23). -
Tis the letter T or the space character. It is required only when the time is present. -
miis a two-digit minute (00-59). -
ssis a two-digit second (00-59). -
fffis an optional fraction of a second with up to three digits of precision. -
±is an optional+or-character representing a positive or negative timezone offset. It is required only when a timezone offset is present.
-
- Constant parts
-
-separates the year, month, and day. -
:separates the hour, minute, and second. -
.separates the second from a fraction of a second. It is required when the fraction is present. -
Zis optional and represents the UTC timezone (also called Zulu time), which represents the timezone offset of+00:00.
-
- Examples
2025-07-11T16:18:33Z2025-07-11T16:18:33+00:002025-07-11 16:18:33.9-07:00