dt_str(Value, format="Formatted string", zone="")
Parameter | Description | Parameter Type | Required | Default Value | Value Range |
data | string | No | - | - | |
format | string | No | - | - | |
zone | string | No | UTC+00:00 | - |
{"date":"2014-04-26 13:13:44 +09:00"}
fields_set("result", dt_str(v("date"), format="yyyy-MM-dd HH:mm:ss", zone="UTC+8"))
{"date":"2014-04-26 13:13:44 +09:00","result":"2014-04-26 12:13:44"}
dt_to_timestamp(Value, zone="")
Parameter | Description | Parameter Type | Required | Default Value | Value Range |
data | string | No | - | - | |
zone | UTC time is used by default, without a time zone specified. If you specify a time zone, make sure that it corresponds to the time field value. Otherwise, a time zone error occurs. For time zone definitions, see ZoneId. | string | No | UTC+00:00 | - |
{"date":"2021-10-26 15:48:15"}
fields_set("result", dt_to_timestamp(v("date"), zone="UTC+8"))
{"date":"2021-10-26 15:48:15","result":"1635234495000"}
dt_from_timestamp(Value, zone="")
Parameter | Description | Parameter Type | Required | Default Value | Value Range |
data | string | No | - | - | |
zone | string | No | UTC+00:00 | - |
{"date":"1635234495000"}
fields_set("result", dt_from_timestamp(v("date"), zone="UTC+8"))
{"date":"1635234495000","result":"2021-10-26 15:48:15"}
dt_now(format="Formatted string", zone="")
Parameter | Description | Parameter Type | Required | Default Value | Value Range |
format | string | No | - | - | |
zone | string | No | UTC+00:00 | - |
{"date":"1635234495000"}
fields_set("now", dt_now(format="yyyy-MM-dd HH:mm:ss", zone="UTC+8"))
{"date":"1635234495000","now":"2021-MM-dd HH:mm:ss"}
custom_cls_log_time(time)
Parameter | Description | Parameter Type | Required | Default Value | Value Range |
time | UTC Timestamp Type. For the definition of time zone, refer to ZoneId. It supports seconds, milliseconds, microseconds, and nanoseconds. For example, 1565064739000. | string | No | - | - |
{"field1": "1","time":"06/Aug/2019 12:12:19"}
custom_cls_log_time(dt_to_timestamp(v("time"), zone="UTC+8"))
{"__TIMESTAMP__":"1565064739000", "field1":"1", "time":"06/Aug/2019 12:12:19"}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback