<p dir="ltr"><br>
On Jun 21, 2016 01:16, "Robert Helling" <<a href="mailto:helling@atdotde.de">helling@atdotde.de</a>> wrote:<br>
><br>
> What I propose is upon initialization setTimezoneSpec<br>
> once with UTC then for conversion functions there is no<br>
> further need to explicitly state time zone specifications</p>
<p dir="ltr">I don't think we can do that.</p>
<p dir="ltr">There are several cases where we do want local time, notably when we ask the system "what time is it now". Then we want the hours, minutes and seconds as they are locally, not as they are in UTC.</p>
<p dir="ltr">We then convert the end result into "what would that be in UTC", but to initially get the current time field we need local time conversion.</p>
<p dir="ltr">Globally setting "we want UTC" might also screw up other things - I could imagine things like file open dialogs showing odd times etc</p>
<p dir="ltr">But maybe I misunderstand what you were proposing. But I think the UTC thing needs to be done per operation, not set once at init time.</p>
<p dir="ltr">Every time we work with our own timestamp_t, we'll want UTC, but sometimes we do look up times that aren't dive times (yet). </p>
<p dir="ltr">    Linus</p>
<p dir="ltr"> </p>