UtcTime Class

Useful time related fields using global time. Note that its its common for the system time to be inaccurate, expect a difference by 5 seconds. If the machine time is not automatically updated, it can be up to much more.

Definition

Namespace: Alteruna
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public static class UtcTime
Inheritance
Object    UtcTime

Properties

Milliseconds Get the number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z in Coordinated Universal Time.
MillisecondsFloat Get Coordinated Universal Time in milliseconds casted to float with modulus to avoid losing precision. The value will loop on 16777215 milliseconds in order to avoid losing precision.
NowGets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Seconds Get the number of seconds that have elapsed since 1970-01-01T00:00:00.000Z in Coordinated Universal Time.
SecondsFloat 

See Also