SwatchUtils.ToDouble method

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

ToDouble(DateTime)

Static

Returns the specified timestamp as Swatch Internet Time.

public static double ToDouble(DateTime timestamp)

Parameters

timestamp DateTime

An instance of DateTime representing the timestamp.

Returns

A Double reprenting the Swatch Internet Time.

ToDouble(DateTimeOffset)

Static

Returns the specified timestamp as Swatch Internet Time.

public static double ToDouble(DateTimeOffset timestamp)

Parameters

timestamp DateTimeOffset

An instance of DateTimeOffset representing the timestamp.

Returns

A Double reprenting the Swatch Internet Time.

ToDouble(EssentialsTime)

Static

Returns the specified timestamp as Swatch Internet Time.

public static double ToDouble(EssentialsTime timestamp)

Parameters

timestamp EssentialsTime

An instance of EssentialsTime representing the timestamp.

Returns

A Double reprenting the Swatch Internet Time.