comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada.Calendar.Formatting.Image (or Time_Of) changing the time
Date: Mon, 2 Mar 2020 17:08:07 -0600
Date: 2020-03-02T17:08:07-06:00	[thread overview]
Message-ID: <r3k3ko$6a6$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: e92d8c8d-a182-4990-b3f6-33c2ab90bce9@googlegroups.com

What time zone did you give Image? Time zones are dependent on the time 
given, so just giving some constant is insufficient to give the correct 
local time. (A "time zone" is an offset from UTC, so of course it differs 
throughout the year for most localities.)

                   Randy.

"Marius Amado-Alves" <amado.alves@gmail.com> wrote in message 
news:e92d8c8d-a182-4990-b3f6-33c2ab90bce9@googlegroups.com...
> Feeding Ada.Calendar.Formatting.Image with an Ada.Calendar.Time_Of the 
> year, month, day, seconds on the left, we get the image on the right. Some 
> images, marked *, are 1 hour behind.
>
> 2015 1 21 32040 ( 8:54 AM) => 2015-01-21 08:54:00
> 2015 1 21 39240 (10:54 AM) => 2015-01-21 10:54:00
> 2015 7 21 32040 ( 8:54 AM) => 2015-07-21 07:54:00 *
> 2015 7 21 39240 (10:54 AM) => 2015-07-21 09:54:00 *
>
> The different input is the month, January versus July, so it looks like a 
> daylight savings thing. Is this expected behaviour? Thanks.
>
> [Compiler = GNAT Community 2018 (20180523-73)] 



  reply	other threads:[~2020-03-02 23:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-02 18:49 Ada.Calendar.Formatting.Image (or Time_Of) changing the time Marius Amado-Alves
2020-03-02 23:08 ` Randy Brukardt [this message]
2020-03-03 12:59   ` Marius Amado-Alves
2020-03-03 14:25     ` Dmitry A. Kazakov
2020-03-03 14:53 ` Simon Wright
2020-03-03 17:40   ` Simon Wright
2020-03-03 23:49   ` Randy Brukardt
2020-03-04 15:19     ` Simon Wright
2020-03-04 22:33     ` Optikos
2020-03-05 16:11       ` Optikos
2020-03-05 23:29       ` Randy Brukardt
2020-03-06 14:42         ` Optikos
2020-03-07  0:19           ` Randy Brukardt
2020-03-07  1:18             ` Optikos
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox