X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/73dc35e2f5590c00b7e6ca3ad6a473f8f992e5f9..a034bb6ae0748d7adc7a04c6a8e5753c0f13eae4:/doc/parse.md diff --git a/doc/parse.md b/doc/parse.md index 6d72fdf..649ee81 100644 --- a/doc/parse.md +++ b/doc/parse.md @@ -4,6 +4,9 @@ Provides parsers for common time and date formats. Functions take the source string and an optional initial postition. -## `rfc_3339 ( string [, init] )` +### `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