-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Add some notes about timezones and UTC to Time #54256
Conversation
68467b9
to
396d2f0
Compare
Updated, fixed :) |
Thanks! |
</description> | ||
</method> | ||
<method name="get_unix_time_from_datetime_string" qualifiers="const"> | ||
<return type="int" /> | ||
<argument 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 usually in UTC, the given datetime string may not be. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The timestamp will be equivalent to whatever datetime string is given. It doesn't do any conversion. If the string is a time offset from UTC, the timestamp will be too. The docs are not incorrect, but I think this could be phrased better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I'm not against improving the wording if you have a suggestion. :)
Repeats some warnings/notes from the class description in the appropriate methods, also adding some notes about UTC/timezones and bit size/wrapping of values.
Should fix #52951.