Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

datetimeoffset flutter

// 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()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datetimeoffset #flutter
ADD COMMENT
Topic
Name
5+6 =