Pudu programming language
Menu
API reference

Std.Time.Format.Header.fieldsOf

1 declaration

fn

fieldsOf: Str -> Result[Array[Int], Str]

The year, month, day, hour, minute, and second an HTTP date writes, in order, from any of the three forms a recipient reads: Sun, 06 Nov 1994 08:49:37 GMT, the obsolete Sunday, 06-Nov-94 08:49:37 GMT, and the obsolete Sun Nov 6 08:49:37 1994.

Only the shape is judged here; the failure is the text. Calendar and clock ranges are the caller's, which holds the calendar.

Back to Std.Time.Format.HeaderSearch related declarations