Click or drag to resize

OSGetUnixTime Method

Returns the current UNIX epoch timestamp in seconds.

Important: This is the system clock that the user can manully set. Never use this method for precise time calculation since its results are also subject to automatic adjustments by the operating system. Always use GetTicksUsec or GetTicksMsec for precise time calculation instead, since they are guaranteed to be monotonic (i.e. never decrease).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static ulong GetUnixTime()

Return Value

Type: UInt64

[Missing <returns> documentation for "M:Godot.OS.GetUnixTime"]

See Also