Table of contents
TOC
Collapse the table of content
Expand the table of content

DateTimeZone.SwitchZone

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Changes the timezone information for the input DateTimeZone.

DateTimeZone(dateTimeZone as datetimezone, timezoneHours as number,  optional timezoneMinutes as nullablenumber ) as nullable datetimezone  

Arguments

ArgumentDescription
dateTimeZoneThe DateTimeZone to modify.
timezoneHoursThe house to add.
optional timezoneMinutesThe minuts to add.

Remarks

  • If the input value does not have a timezone component, DateTimeZone.SwitchZone throws Expression.Error.

Examples

DateTimeZone.SwitchZone(#datetimezone(2010, 5, 4, 6, 5, 5, 0, 0), 8) equals #datetimezone(2010, 5, 4, 14, 5, 5, 8, 0)  
DateTimeZone.SwitchZone(#datetimezone(2010, 12, 31, 11, 56, 02, 7, 30), 0, -30) equals #datetimezone(2010, 12, 31, 3, 56, 2, 0, -30)  
© 2018 Microsoft