Skip to content

Commit 63f8dc3

Browse files
committed
Various improvements
- reference RFC9557 - clean up some recommendations - clarify the mixed-vs-same offset example
1 parent 7289a44 commit 63f8dc3

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

index.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ <h3>Floating Time</h3>
390390

391391
<p>France has a number of overseas departments which do not share a time zone with Metropolitan France. In this example, we'll look at three French time zones: <code>Europe/Paris</code>, <code>Pacific/Noumea</code> (the time zone used in New Caledonia), and <code>Pacific/Tahiti</code> (one of the timezones in French Polynesia).</p>
392392

393-
<p>New Caledonia is one of (but not the) first time zones in France to observe the holiday. Tahiti is one of (but not the) last in France to observe it. The table below shows the dates and times in each of the time zones as Bastille Day is observed around the world. Notice that some of the [=incremental time=] values that are "Bastille Day" in one time zone are either before "Bastille Day" starts or after it ends in the time zones:</p>
393+
<p>New Caledonia is one of (but not the) first time zones in France to observe the holiday. Tahiti is one of (but not the) last in France to observe it. The table below shows the dates and times in each of the time zones as Bastille Day is observed around the world. Notice that some of the [=incremental time=] values that are "Bastille Day" in one time zone are either before "Bastille Day" starts or after it ends in the other time zones:</p>
394394

395395
<table>
396396
<thead>
@@ -494,25 +494,29 @@ <h3 id="definitions">Definitions</h3>
494494
<section>
495495
<h3>Serializations</h3>
496496

497-
<p class=issue>Some of the serializations in this section are not currently part of any standard. Work at the IETF on <a href="https://datatracker.ietf.org/doc/draft-ietf-sedate-datetime-extended/">SEDATE</a> might address this gap. Other standards, such as XMLSchema might be affected.</p>
497+
<p>Serialization of date/time values is necessary for interchange of these kinds of values in document formats and protocols. Which serialization to use depends on the application's <a href="#use-cases">use case</a> and available standards. Serializations that use time zone IDs instead of relying on offsets is RECOMMENDED.</p>
498+
499+
<aside class="note">
500+
<p>The serializations in this section that utilized time zone IDs (and not just offsets) were only recently standardized, in [[RFC9557]]. Other standards, such as XMLSchema, cannot currently represent these values.</p>
501+
</aside>
498502
<table>
499503
<thead>
500504
<tr>
501-
<th>Name</th>
502-
<th>Example</th>
505+
<th>Type Being Serialized</th>
506+
<th>Serialization to Use</th>
503507
<th>Description</th>
504508
</tr>
505509
</thead>
506510
<tbody>
507511
<tr>
508-
<td>Instant, Timestamp</td>
512+
<td>Instant, Timestamp, Date</td>
509513
<td><code>2007-01-01T01:00:00.000Z</code></td>
510514
<td>An <a>incremental time</a> (instant on the timeline) with UTC offset.</td>
511515
</tr>
512516
<tr>
513517
<td>OffsetDateTime</td>
514518
<td><code>2007-01-01T01:00:00.000+01:00</code></td>
515-
<td>An <a>incremental time</a> with an explicit offset from UTC.</td>
519+
<td>An <a>incremental time</a> with an explicit offset from UTC. Zoned Instant is preferred.</td>
516520
</tr>
517521
<tr>
518522
<td>Zoned Offset DateTime</td>
@@ -661,7 +665,7 @@ <h3>General Recommendations</h3>
661665
<thead>
662666
<tr>
663667
<th>Mixed Offsets</th>
664-
<th style="padding-left: 30px">Same Offset</th>
668+
<th style="padding-left: 30px">Same value converted to UTC</th>
665669
</tr>
666670
</thead>
667671
<tbody>

0 commit comments

Comments
 (0)