getDateTime method
Gets the DateTime representation based on the specified timezone type
Implementation
DateTime getDateTime(TimeZoneType timeZone) {
switch (timeZone) {
case TimeZoneType.local:
return dateTime;
case TimeZoneType.utc:
return dateTimeUtc;
}
}