Skip to content

Commit

Permalink
datetime: add a note about supported formats (#4426)
Browse files Browse the repository at this point in the history
Closes #3155
  • Loading branch information
ligurio authored Aug 12, 2024
1 parent fa48d0a commit dbee43e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/reference/reference_lua/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ Functions
:param string format: indicator of the ``input_string`` format.
Possible values: 'iso8601', 'rfc3339', or ``strptime``-like format string.
If no value is set, the default formatting is used (``"%F %T %Z"``).
Note that only a part of possible ISO 8601 and RFC 3339 formats are supported.
To parse unsupported formats, you can specify a format string manually using
`conversion specifications <https://www.freebsd.org/cgi/man.cgi?query=strftime&sektion=3>`__
and ordinary characters.
:param number tzoffset: time zone offset from UTC, in minutes.

:return: a datetime_object
Expand Down

0 comments on commit dbee43e

Please sign in to comment.