Time, files and text
On this page
NowUnix()#
NowUnix() -> intRead whole Unix seconds from the system clock.
Returns: Integer.
NowUnix()DateTimeNow()#
DateTimeNow(utc: bool = false) -> DictionaryRead current local/UTC calendar components.
Returns: Dictionary.
DateTimeNow(true)DateTimeString()#
DateTimeString(utc: bool = false, use_space: bool = true) -> StringFormat the current local/UTC system date/time.
Returns: String.
DateTimeString(false, true)UnixToDateTime()#
UnixToDateTime(unix_time: int, _utc: bool = false) -> DictionaryConvert Unix seconds to Godot’s UTC calendar dictionary.
Returns: Dictionary.
UnixToDateTime(0)The retained UTC parameter is ignored for compatibility. Use native Time APIs for explicit date operations.
