<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 19, 2015 at 10:22 AM, Alexander Belopolsky <span dir="ltr"><<a href="mailto:alexander.belopolsky@gmail.com" target="_blank">alexander.belopolsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Regardless of the software involved, if I give you an ISO 8601 string "2015-03-07 12:00:00-0500" and ask you: What time will be 24 hours after that? I bet your answer will be "2015-03-08 12:00:00-0500." And I don't think you will appreciate being ridiculed for not knowing that the "correct" answer is "2015-03-08 13:00:00-0400." </div></div></div></div></blockquote><div><br></div><div>But that isn't, and can't be the "correct" answer. ISO 8601 does not have a way to encode timezones. So that string can only mean a particular time in UTC. Unless there is a specification of the timezone somewhere else.</div><div><br></div><div>But this is about how to interpret ISO 8601 strings, so really a different question anyway.</div><div><br></div><div>-Chris</div><div><br></div></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R (206) 526-6959 voice<br>7600 Sand Point Way NE (206) 526-6329 fax<br>Seattle, WA 98115 (206) 526-6317 main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>