Make the parsing of minutes optional under the flags %z

This commit is contained in:
Howard Hinnant
2018-03-03 11:56:22 -05:00
parent e87abb9125
commit e5ac158f0f
2 changed files with 16 additions and 10 deletions
+7 -5
View File
@@ -26,7 +26,7 @@
<br/>
<br/>
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
2018-01-07<br/>
2018-03-03<br/>
</address>
<hr/>
<h1 align=center><code>date</code></h1>
@@ -8226,10 +8226,12 @@ representation.</td>
<tr>
<td><code>%z</code></td>
<td>The offset from UTC in the ISO 8601 format. For example <code>-0430</code> refers to
4 hours 30 minutes behind UTC. The modified commands <code>%Ez</code> and <code>%Oz</code>
parse a <code>:</code> between the hours and minutes and leading zeroes on the hour field
are optional: <code>-4:30</code>.</td>
<td>The offset from UTC in the format <code>[+|-]hh[mm]</code>. For example
<code>-0430</code> refers to 4 hours 30 minutes behind UTC. And <code>04</code> refers to
4 hours ahead of UTC. The modified commands <code>%Ez</code> and <code>%Oz</code> parse a
<code>:</code> between the hours and minutes and leading zeroes on the hour field are
optional: <code>[+|-]h[h][:mm]</code>. For example <code>-04:30</code> refers to 4 hours
30 minutes behind UTC. And <code>4</code> refers to 4 hours ahead of UTC.</td>
</tr>
<tr>