Skip to content
Myr

iso8601.h

This file

Path

src/iso8601.h

14 lines · 365 bytes · C

Last changed by

Parse the full ISO 8601 grammar in `fromdateiso8601` (#3617)itchynybefore adoptionfd25c3e

History of this file

Take it

1#ifndef JQ_ISO8601_H2#define JQ_ISO8601_H34#include <stddef.h>56/*7 * Parses [buf, buf + len) as an ISO 8601 date and time of day.8 *9 * On success stores the number of seconds since the Unix epoch in *out and10 * returns 1.  On failure returns 0 and leaves *out untouched.11 */12int iso8601_parse(const char *buf, size_t len, double *out);1314#endif /* JQ_ISO8601_H */