<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>The <code>unix-tz-json</code> format</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> 
A <dfn><code>unix-tz-json</code></dfn> value is a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON object</anchor>.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> 
A <code>unix-tz-json</code> value represents a timestamp
and optional time-zone offset,
or is invalid.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> 
A <code>unix-tz-json</code> value <MUST xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MUST</MUST> have a pair
whose name is <dfn><code>unix</code></dfn> and
whose value is a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON number</anchor>.
The value is the <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">unix time</anchor> representation 
of the timestamp of the <code>unix-tz-json</code> value.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> 
A <code>unix-tz-json</code> value <MAY xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MAY</MAY> have a pair
whose name is <dfn><code>tzOffset</code></dfn> and
whose value is a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON number</anchor> or <code>null</code>.
The value is the <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTC offset</anchor> representation 
of the time-zone offset of the <code>unix-tz-json</code> value.
If there is no such pair, or if the value is <code>null</code>,
the time-zone offset of the <code>unix-tz-json</code> is omitted.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> 
A <code>unix-tz-json</code> value <MUST xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MUST NOT</MUST> have any other name/value pair.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> 
If a <code>unix-tz-json</code> value does not have a pair whose name is <code>unix</code>,
the <code>unix-tz-json</code> value is invalid.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> 
If a <code>unix-tz-json</code> value have a pair whose name is <code>unix</code> 
and whose value is not a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON number</anchor>,
the <code>unix-tz-json</code> value is invalid.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> 
If a <code>unix-tz-json</code> value have a pair whose name is <code>unix</code> 
and whose value is not a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JSON number</anchor> or <code>null</code>,
the <code>unix-tz-json</code> value is invalid.</p></section><section><h1>Definitions</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> 
This specification depends on the <cite><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Infra Standard</anchor></cite>.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 
The terms 
<dfn>number<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">JSON number</title></dfn>
and
<dfn>object<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">JSON object</title></dfn>
are defined by <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ECMA-404</anchor>.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> 
Dates and times are to be interpreted per the time system
defined by the <cite><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML Standard</anchor></cite>.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> 
A <dfn>unix time</dfn> is the number of seconds since 00:00:00 UTC of
January 1st, A.D. 1970.
Note that the time system of HTML does not have leap seconds.
Times before 1970 are represented as negative values.
Fractional numbers can be used for subseconds.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="13" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[13]</anchor-end> 
A <dfn>UTC offset</dfn> is the number of seconds between UTC and a local time.
If the value is positive, the local time is ahead of UTC.
If the value is negative, the local time is behind of UTC.</p></section><section><h1>Notes</h1></section></body></html>