Skip to content

Commit 8b5e9da

Browse files
committed
datetime: add a note ragarding supported formats
Closes #3155
1 parent fa48d0a commit 8b5e9da

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, only a part of possible ISO 8601 and RFC 3339 formats are supported,
275+
use a string with custom format 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)