The DateTime Variable Data Type The DateTime Variable Data Type

The DateTime Variable Data Type

Adam Evans Adam Evans
The Datetime Airkit type pairs a Date with a Time and a timezone. The Datetime type is important when performing operations that deal with dates and times. Depending on the operation the time zone of the Datetime may change the result. For example, calculating a Datetime one day in the future may depend on the time zone as some regions do not follow daylight savings time. By using the Datetime type there is no need to worry about these details, Airkit will take care of all of the details (of which there are many).
 

Example DateTime:

{
"date": {
"day": 21,
"month": 6,
"year": 2021
},
"time": {
"hour": 20,
"minute": 56,
"second": 32,
"millisecond": 647
},
"timeZone": "UTC"
}