[Gambas-user] Syntax of dates represented in a string
BB
adamnt42 at gmail.com
Thu Nov 17 07:59:39 CET 2022
On 17/11/22 11:43 am, Benoit Minisini wrote:
> The other problem raised by Bruce (BB <adamnt42 at gmail.com>) is another
> beast: in a few words, how to know which timezone must be used at a
> specific date.
>
> The data exists, but apparently the C library does not have any API
> for that.
>
> Moreover, the problem can be circular: to define the specific date,
> you may need the timezone you are looking for.
>
> So I don't think there is a solution for that at the moment.
I now believe that you are fully correct. Although the libc "tm" struct
contains "tm_isdst" which supposedly can indicate whether a date/time is
or is not in dst, it is never set as specified in all the documentation.
All the libraries I have looked at so far depend on this struct. All
that is ever returned in this integer is the same value that went in on
the call. There is a plethora of complaints about this across the
internet with no satisfactory reply. So much for linux! (or was it that
Kernighan et al had never heard of daylight savings?)
Bah!
b
More information about the User
mailing list