TimeUtils
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.
Declaration
Summary
Pure C# time utilities to replace Godot’s Time class. Provides AOT-compatible time operations for iOS/Android.
Metadata
Namespace: GridPlacement.Core.Time
Source File: cs/Core/Time/TimeUtils.cs
Assembly: GridPlacement.Core
Type: class
Methods
GetUnixTime
Gets the current Unix timestamp in seconds. Equivalent to Godot’s Time.GetUnixTimeFromSystem().
GetUnixTimeMilliseconds
Gets the current Unix timestamp in milliseconds.
GetUnixTimePrecise
Gets the current Unix timestamp with fractional seconds. More precise than GetUnixTime().
GetDateTimeString
Gets the current time as a formatted string.
GetDateTimeStringUtc
Gets the current UTC time as a formatted string.
FromUnixTime
Converts Unix timestamp to DateTime.
FromUnixTimeMilliseconds
Converts Unix timestamp in milliseconds to DateTime.
GetElapsedSeconds
Gets elapsed time in seconds between two Unix timestamps.
GetElapsedSecondsSince
Gets elapsed time in seconds since a Unix timestamp.
HasDurationPassed
Checks if a duration has passed since a given timestamp.