Check out example codes for "datetimeoffset flutter". It will help you in understanding the concepts better.

Code Example 1

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

// prints true.

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

Learn ReactJs, React Native from