Date Time Model

The Date Time Model – is a model for showing date time parameters like timestamp, time, date, and timezone. Model fields are presented in the table (Table 4.15), with an example below (Listing 4.11).

Table 4.15 – Fields of Date Time Model

Key
Type
Exists
Description

1

unix_timestamp

integer

required

Current date time timestamp

2

human_time

string

required

Time in format ‘H:i:s’

3

human_date

string

required

Date in format ‘Y-m-d’

4

timezone

string

required

Always UTC

Listing 4.11 – Example of Date Time Model (JSON)

{
    "unix_timestamp":  "1711929600",
    "human_time":      "17:25:11",
    "human_date":      "2024-06-12",
    "timezone":        "UTC"
}

Last updated