Skip to content

Commit dbee43e

Browse files
authored
datetime: add a note about supported formats (#4426)
Closes #3155
1 parent fa48d0a commit dbee43e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/reference/reference_lua/datetime.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,10 @@ Functions
271271
:param string format: indicator of the ``input_string`` format.
272272
Possible values: 'iso8601', 'rfc3339', or ``strptime``-like format string.
273273
If no value is set, the default formatting is used (``"%F %T %Z"``).
274+
Note that only a part of possible ISO 8601 and RFC 3339 formats are supported.
275+
To parse unsupported formats, you can specify a format string manually using
276+
`conversion specifications <https://www.freebsd.org/cgi/man.cgi?query=strftime&sektion=3>`__
277+
and ordinary characters.
274278
:param number tzoffset: time zone offset from UTC, in minutes.
275279

276280
:return: a datetime_object

0 commit comments

Comments
 (0)