From: Eric S. Raymond Date: Sun, 28 Sep 2014 01:55:51 +0000 (-0400) Subject: Add time_t back in. All regression tests pass. X-Git-Tag: 1.3~4 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=3fa673faa9455d3c098ce1a2b937c39aed2a4256;p=microjson.git Add time_t back in. All regression tests pass. --- diff --git a/NEWS b/NEWS index 68580cf..25186ff 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ microjson project news +Repository head: + Add a time_t type that is an RFC3339 date, stored as Unix seconds. + 1.2: 2014-09-27 Added a manual page. diff --git a/microjson.asc b/microjson.asc index d94dc19..dacb44c 100644 --- a/microjson.asc +++ b/microjson.asc @@ -147,6 +147,12 @@ C char buffer. +t_character+: Accept a single-character JSON string literal, copy that character to a C +char+ location. ++t_time+" Accept a string that is an RFC3339 timestamp (full ISO-8601 +date/time in Zulu time with optional fractional decimal seconds). +Store as a double value, seconds since Unix epoch. Accepted only +if the code was built with -DTIME_ENABLE; introduces a dependency +on the glibc function timegm(). + Associated with each simple value type's storage (in the +addr+ union) is a correspondingly-named field in the +dflt+ union). This is a default value which is copied to the target storage