EssentialsTime.FromTicks method

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

FromTicks(long)

Static

Creates a new EssentialsTime instance from the specified amount of ticks.

public static EssentialsTime FromTicks(long ticks)

Parameters

ticks long

The amount of ticks.

Returns

An instance of EssentialsTime.

FromTicks(long, TimeSpan)

Static

Creates a new EssentialsTime instance from the specified amount of ticks and offset.

public static EssentialsTime FromTicks(long ticks, TimeSpan offset)

Parameters

ticks long

The amount of ticks.

offset TimeSpan

The offset to UTC.

Returns

An instance of EssentialsTime.