This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| final now = DateTime.now(); | |
| print(now.timeZoneOffset);; | |
| print(now.toIso8601String()); | |
| print('---------------'); | |
| print(now.toUtc().toIso8601String()); | |
| // Current time in New York: 2009-11-10 18:00:00 | |
| // Current time in New York: "2009-11-10T18:00:00-05:00" | |
| // Current time in New York: "2009-\T23:00:00Z" | |
| // final times = [ |