Codeunit 8721 Time Zone Impl.

System Application, System.DateTime

Source AL, 80 lines

src/System Application/App/Date and Time/src/TimeZoneImpl.Codeunit.allines 10 to 25 of 80, Copyright (c) Microsoft Corporation. MIT

codeunit 8721 "Time Zone Impl."{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        TimeZoneInfoDotNet: DotNet TimeZoneInfo;        InvalidTimeZoneIdErr: Label 'You have passed an invalid timezone ID (%1). Please reference the time zone list for supported time zone IDs.', Comment = '%1 = The invalid time zone ID passed to the procedure.';    procedure GetUtcOffset(SourceDateTime: DateTime; TimeZoneId: Text): Duration    var        Offset: Duration;    begin        InitializeTimeZoneInfo(TimeZoneId, TimeZoneInfoDotNet);        Offset := TimeZoneInfoDotNet.GetUtcOffset(SourceDateTime);

All 80 lines

Public procedures 6 in 29

GetUtcOffset(SourceDateTime: DateTime; TimeZoneId: Text): Durationnew in 22
GetUtcOffsetForUserTimeZone(SourceDateTime: DateTime): Durationnew in 22
GetTimeZoneOffset(SourceDateTime: DateTime; SourceTimeZoneId: Text; DestinationTimeZoneId: Text): Durationnew in 22
TimeZoneSupportsDaylightSavingTime(TimeZoneId: Text): Booleannew in 22
IsDaylightSavingTime(DateTimeToCheck: DateTime; TimeZoneId: Text): Booleannew in 22
InitializeTimeZoneInfo(TimeZoneId: Text; var TimeZoneInfo: DotNet TimeZoneInfo)new in 22