EssentialsTime.ToOffset method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

ToOffset(TimeSpan)

Converts the value of the current EssentialsTime object to the date and time specified by an offset value.

public EssentialsTime ToOffset(TimeSpan offset)

Parameters

offset TimeSpan

The offset to convert the EssentialsTime value to.

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 set to offset.