summaryrefslogtreecommitdiff
path: root/doc/classes/Time.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Time.xml')
-rw-r--r--doc/classes/Time.xml42
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/classes/Time.xml b/doc/classes/Time.xml
index 5fc85c869b..e213be2e12 100644
--- a/doc/classes/Time.xml
+++ b/doc/classes/Time.xml
@@ -15,7 +15,7 @@
<methods>
<method name="get_date_dict_from_system" qualifiers="const">
<return type="Dictionary" />
- <argument index="0" name="utc" type="bool" default="false" />
+ <param index="0" name="utc" type="bool" default="false" />
<description>
Returns the current date as a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]weekday[/code], and [code]dst[/code] (Daylight Savings Time).
The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC.
@@ -23,14 +23,14 @@
</method>
<method name="get_date_dict_from_unix_time" qualifiers="const">
<return type="Dictionary" />
- <argument index="0" name="unix_time_val" type="int" />
+ <param index="0" name="unix_time_val" type="int" />
<description>
Converts the given Unix timestamp to a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], and [code]weekday[/code].
</description>
</method>
<method name="get_date_string_from_system" qualifiers="const">
<return type="String" />
- <argument index="0" name="utc" type="bool" default="false" />
+ <param index="0" name="utc" type="bool" default="false" />
<description>
Returns the current date as an ISO 8601 date string (YYYY-MM-DD).
The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC.
@@ -38,15 +38,15 @@
</method>
<method name="get_date_string_from_unix_time" qualifiers="const">
<return type="String" />
- <argument index="0" name="unix_time_val" type="int" />
+ <param index="0" name="unix_time_val" type="int" />
<description>
Converts the given Unix timestamp to an ISO 8601 date string (YYYY-MM-DD).
</description>
</method>
<method name="get_datetime_dict_from_datetime_string" qualifiers="const">
<return type="Dictionary" />
- <argument index="0" name="datetime" type="String" />
- <argument index="1" name="weekday" type="bool" />
+ <param index="0" name="datetime" type="String" />
+ <param index="1" name="weekday" type="bool" />
<description>
Converts the given ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS) to a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]weekday[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code].
If [code]weekday[/code] is false, then the [code]weekday[/code] entry is excluded (the calculation is relatively expensive).
@@ -55,14 +55,14 @@
</method>
<method name="get_datetime_dict_from_system" qualifiers="const">
<return type="Dictionary" />
- <argument index="0" name="utc" type="bool" default="false" />
+ <param index="0" name="utc" type="bool" default="false" />
<description>
Returns the current date as a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]weekday[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code].
</description>
</method>
<method name="get_datetime_dict_from_unix_time" qualifiers="const">
<return type="Dictionary" />
- <argument index="0" name="unix_time_val" type="int" />
+ <param index="0" name="unix_time_val" type="int" />
<description>
Converts the given Unix timestamp to a dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], and [code]weekday[/code].
The returned Dictionary's values will be the same as the [method get_datetime_dict_from_system] if the Unix timestamp is the current time, with the exception of Daylight Savings Time as it cannot be determined from the epoch.
@@ -70,8 +70,8 @@
</method>
<method name="get_datetime_string_from_datetime_dict" qualifiers="const">
<return type="String" />
- <argument index="0" name="datetime" type="Dictionary" />
- <argument index="1" name="use_space" type="bool" />
+ <param index="0" name="datetime" type="Dictionary" />
+ <param index="1" name="use_space" type="bool" />
<description>
Converts the given dictionary of keys to an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS).
The given dictionary can be populated with the following keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code]. Any other entries (including [code]dst[/code]) are ignored.
@@ -81,8 +81,8 @@
</method>
<method name="get_datetime_string_from_system" qualifiers="const">
<return type="String" />
- <argument index="0" name="utc" type="bool" default="false" />
- <argument index="1" name="use_space" type="bool" default="false" />
+ <param index="0" name="utc" type="bool" default="false" />
+ <param index="1" name="use_space" type="bool" default="false" />
<description>
Returns the current date and time as an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS).
The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC.
@@ -91,8 +91,8 @@
</method>
<method name="get_datetime_string_from_unix_time" qualifiers="const">
<return type="String" />
- <argument index="0" name="unix_time_val" type="int" />
- <argument index="1" name="use_space" type="bool" default="false" />
+ <param index="0" name="unix_time_val" type="int" />
+ <param index="1" name="use_space" type="bool" default="false" />
<description>
Converts the given Unix timestamp to an ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS).
If [code]use_space[/code] is true, use a space instead of the letter T in the middle.
@@ -100,7 +100,7 @@
</method>
<method name="get_offset_string_from_offset_minutes" qualifiers="const">
<return type="String" />
- <argument index="0" name="offset_minutes" type="int" />
+ <param index="0" name="offset_minutes" type="int" />
<description>
Converts the given timezone offset in minutes to a timezone offset string. For example, -480 returns "-08:00", 345 returns "+05:45", and 0 returns "+00:00".
</description>
@@ -121,7 +121,7 @@
</method>
<method name="get_time_dict_from_system" qualifiers="const">
<return type="Dictionary" />
- <argument index="0" name="utc" type="bool" default="false" />
+ <param index="0" name="utc" type="bool" default="false" />
<description>
Returns the current time as a dictionary of keys: [code]hour[/code], [code]minute[/code], and [code]second[/code].
The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC.
@@ -129,14 +129,14 @@
</method>
<method name="get_time_dict_from_unix_time" qualifiers="const">
<return type="Dictionary" />
- <argument index="0" name="unix_time_val" type="int" />
+ <param index="0" name="unix_time_val" type="int" />
<description>
Converts the given time to a dictionary of keys: [code]hour[/code], [code]minute[/code], and [code]second[/code].
</description>
</method>
<method name="get_time_string_from_system" qualifiers="const">
<return type="String" />
- <argument index="0" name="utc" type="bool" default="false" />
+ <param index="0" name="utc" type="bool" default="false" />
<description>
Returns the current time as an ISO 8601 time string (HH:MM:SS).
The returned values are in the system's local time when [code]utc[/code] is false, otherwise they are in UTC.
@@ -144,7 +144,7 @@
</method>
<method name="get_time_string_from_unix_time" qualifiers="const">
<return type="String" />
- <argument index="0" name="unix_time_val" type="int" />
+ <param index="0" name="unix_time_val" type="int" />
<description>
Converts the given Unix timestamp to an ISO 8601 time string (HH:MM:SS).
</description>
@@ -157,7 +157,7 @@
</method>
<method name="get_unix_time_from_datetime_dict" qualifiers="const">
<return type="int" />
- <argument index="0" name="datetime" type="Dictionary" />
+ <param index="0" name="datetime" type="Dictionary" />
<description>
Converts a dictionary of time values to a Unix timestamp.
The given dictionary can be populated with the following keys: [code]year[/code], [code]month[/code], [code]day[/code], [code]hour[/code], [code]minute[/code], and [code]second[/code]. Any other entries (including [code]dst[/code]) are ignored.
@@ -168,7 +168,7 @@
</method>
<method name="get_unix_time_from_datetime_string" qualifiers="const">
<return type="int" />
- <argument index="0" name="datetime" type="String" />
+ <param index="0" name="datetime" type="String" />
<description>
Converts the given ISO 8601 date and/or time string to a Unix timestamp. The string can contain a date only, a time only, or both.
[b]Note:[/b] Unix timestamps are often in UTC. This method does not do any timezone conversion, so the timestamp will be in the same timezone as the given datetime string.