Click or drag to resize

OSGetUnixTimeFromDatetime Method

Gets an epoch time value from a dictionary of time values.

datetime must be populated with the following keys: year, month, day, hour, minute, second.

If the dictionary is empty 0 is returned.

You can pass the output from GetDatetimeFromUnixTime(Int64) directly into this function. Daylight Savings Time (dst), if present, is ignored.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static long GetUnixTimeFromDatetime(
	Dictionary datetime
)

Parameters

datetime
Type: Godot.CollectionsDictionary

[Missing <param name="datetime"/> documentation for "M:Godot.OS.GetUnixTimeFromDatetime(Godot.Collections.Dictionary)"]

Return Value

Type: Int64

[Missing <returns> documentation for "M:Godot.OS.GetUnixTimeFromDatetime(Godot.Collections.Dictionary)"]

See Also