📜  datetimeoffset 颤振 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:06.499000             🧑  作者: Mango

代码示例1
// DateTime can only represent local time and UTC time.
// It supports timezone offset for parsing, but normalizes it to UTC

print(DateTime.parse('2018-09-07T17:29:12+02:00').isUtc);
// prints true.

//You can then only convert between local and UTC time using:
// toLocal() or toUtc()