writeDateTimeJsonObject function
- DateTime dateTime
Writes a date/time JSON object.
TODO This function is currently incomplete!
Implementation
Map<String, dynamic> writeDateTimeJsonObject(DateTime dateTime) => {
'time': dateTime.millisecondsSinceEpoch,
// 'date': dateTime.day,
// 'hours':
// dateTime.hour - 7 > 0 ? dateTime.hour - 7 : 24 + (dateTime.hour - 7),
// 'seconds': dateTime.second,
// 'month': dateTime.month - 1,
};