EssentialsTime.ToTimeZone method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
ToTimeZone(TimeZoneInfo)
Converts the value of the current EssentialsTime to the corresponding date according to the specified timeZone
.
public EssentialsTime ToTimeZone(TimeZoneInfo timeZone)
Parameters
timeZone
TimeZoneInfo
The time zone.
Returns
An object that is equal to the original EssentialsTime object (that is, their Skybrud.Essentials.Time.EssentialsTime.ToUniversalTime
methods return identical points in time) but whose EssentialsTime.Offset property is adjusted according to timeZone
.