X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/33e6d576521eb23df0e11944616af37fb261f121..ee1434f9d329a68d8890b82d72b14bbf1388ccc4:/doc/parse.md?ds=sidebyside diff --git a/doc/parse.md b/doc/parse.md index 993bead..649ee81 100644 --- a/doc/parse.md +++ b/doc/parse.md @@ -2,8 +2,11 @@ Provides parsers for common time and date formats. -Functions take the source string and an optional postition. +Functions take the source string and an optional initial postition. -## `rfc_3339` +### `rfc_3339 ( string [, init] )` -Returns a luatz timetable and the (optional) time zone offset in seconds +If the string is a valid RFC-3339 timestamp, +returns a luatz timetable and the (optional) time zone offset in seconds. + +Otherwise returns `nil` and an error message