DateTime

The Datetime Data 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 such.

 

DateTime Example:

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