-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-coretype-documentationA request to add or improve documentationA request to add or improve documentation
Description
As mentioned in the title and as shown in the example below:
main() {
final datetimeParsed = DateTime.parse('2021-02-05T22:37:12.933232+00:00');
final datetimeMS = DateTime.fromMicrosecondsSinceEpoch(1612564632933232);
print(datetimeParsed.toIso8601String()); // prints 2021-02-05T22:37:12.933Z
print(datetimeMS.toUtc().toIso8601String()); // prints 2021-02-05T22:37:12.933Z
print(datetimeParsed.microsecondsSinceEpoch); // prints 1612564632933000
print(datetimeMS.microsecondsSinceEpoch); // prints 1612564632933000
}Dart SDK on 2.10.4 (example on DartPad)
rydmike, orestesgaolin, iapicca, JonasWanke, knobico and 4 more
Metadata
Metadata
Assignees
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-coretype-documentationA request to add or improve documentationA request to add or improve documentation