[Info-vax] EU will abandon daylight savings time in 2021

Jan-Erik Söderholm jan-erik.soderholm at telia.com
Fri Apr 5 11:26:46 EDT 2019


Den 2019-04-05 kl. 16:43, skrev Arne Vajhøj:
> On 4/5/2019 9:56 AM, Jan-Erik Söderholm wrote:
>> We have the time-of-day part also, a smallint from 0000 - 2359.
> 
> import datetime
> import time
> 
> vd = 20190404
> vt = 1035
> d = datetime.date(vd / 10000, (vd / 100)  % 100, vd % 100)
> print d
> t = datetime.time(vt / 100, vt % 100)
> print t
> dt = datetime.datetime.combine(d, t)
> utc1 = time.mktime(d.timetuple())
> print utc1
> utc2 = time.mktime(dt.timetuple())
> print utc2
> 
> Arne
> 
> 

:-)

Thanks for your interest. will try in in our environment.
I also asked in another post (sorry about that) about that
"TZ DST setup" that you mentioned...

Jan-Erik.





More information about the Info-vax mailing list