]> thyrsus.com Git - microjson.git/commitdiff
Add time_t back in. All regression tests pass.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 28 Sep 2014 01:55:51 +0000 (21:55 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 28 Sep 2014 01:55:51 +0000 (21:55 -0400)
NEWS
microjson.asc

diff --git a/NEWS b/NEWS
index 68580cf958bb406612b51425c7653c0cf73d7a85..25186ff84722f002d9ad884a1c0d21cab3ed2b09 100644 (file)
--- 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.
 
index d94dc193b7d8695314778448db898641efe945c6..dacb44c86f6612a651f0da8b8b840cdfc8441d5e 100644 (file)
@@ -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