aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKyle Luce2016-03-15 21:17:10 -0700
committerKyle Luce2016-03-16 23:13:39 -0700
commit674c6f2f2de46517948c00ecfb7ee8f39849905e (patch)
tree27993974295922fc27bc612be70b04604975f692 /doc
parentcb065b961c80ec6d810539e48ebff75b64367df3 (diff)
downloadgodot-674c6f2f2de46517948c00ecfb7ee8f39849905e.tar.gz
godot-674c6f2f2de46517948c00ecfb7ee8f39849905e.tar.zst
godot-674c6f2f2de46517948c00ecfb7ee8f39849905e.zip
Add function to convert Date time from a dictionary to Epoch
- Also changed get_time_from_unix_time to get_date_time_from_unix_time to be consistent. Ticket: https://github.com/godotengine/godot/issues/4038
Diffstat (limited to 'doc')
-rw-r--r--doc/base/classes.xml32
1 files changed, 31 insertions, 1 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index bc8bec4bb..0a4ed7c84 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -20629,6 +20629,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<argument index="0" name="utc" type="bool" default="false">
</argument>
<description>
+ Returns current date in a dictionary of keys: year, month,
+ day, weekday, dst (daylight savings time).
+ </description>
+ </method>
+ <method name="get_datetime" qualifiers="const">
+ <return type="Dictionary">
+ </return>
+ <argument index="0" name="utc" type="bool" default="false">
+ </argument>
+ <description>
+ Returns current datetime in a dictionary of keys: year,
+ month, day, weekday, dst (daylight savings time), hour, minute, second
</description>
</method>
<method name="get_time" qualifiers="const">
@@ -20637,9 +20649,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<argument index="0" name="utc" type="bool" default="false">
</argument>
<description>
+ Returns current time in a dictionary of keys:
+ hour, minute, second
</description>
</method>
- <method name="get_time_from_unix_time" qualifiers="const">
+ <method name="get_datetime_from_unix_time" qualifiers="const">
<return type="Dictionary">
</return>
<argument index="0" name="unix_time_val" type="int">
@@ -20651,6 +20665,22 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
day light standard time, as it cannot be determined from epoc)
</description>
</method>
+ <method name="get_unix_time_from_datetime" qualifiers="const">
+ <return type="int">
+ </return>
+ <argument index="0" name="datetime" type="Dictionary">
+ </argument>
+ <description>
+ Get an epoch time value from a dictionary of time values
+ datetime must be populated with the following keys:
+ day, hour, minute, month, second, year. You can pass the output from
+ [method get_datetime_from_unix_time] directly into this function. Day
+ light savings time (dst), if present, is ignored.
+
+ To be accurate, datetime dictionary must have keys for: year, month, day,
+ hour, minute, second
+ </description>
+ </method>
<method name="get_time_zone_info" qualifiers="const">
<return type="Dictionary">
</return>