Questions tagged [zoneinfo]
54 questions
1
vote
2 answers
Convert an aware timezone to UIC timezone with zoneinfo (migration away from pytz)
I am using Python 3.8, so I am using https://pypi.org/project/backports.zoneinfo/ to get zoneinfo. Django is deprecating the use of pytz so I am performing the change from pytz to zoneinfo
With pytz one would do from pytz import UTC. The python…

run_the_race
- 1,344
- 2
- 36
- 62
1
vote
2 answers
zoneinfo: what are the new right and posix zone-name prefixes?
The most recent zoneinfo database, as maintained by the Internet Assigned Numbers Authority, holds two new prefixes, 'posix' and 'right'. For example where there used to be just Asia/Kolkata the new database has added posix/Asia/Kolkata and…

O. Jones
- 103,626
- 17
- 118
- 172
1
vote
1 answer
cockroach DB issue to start : Fail to initialize the node: unable to load named timezone
cockroach DB issue to start : Fail to initialize the node: unable to load named timezone.
I downloaded the zoneinfo.zip and unziped and configured the environment variable ZONEINFO and given into the path like C:\Program Files\timezone\zoneinfo but…

Alok
- 11
- 1
1
vote
1 answer
python - remote hosts timezone vs local
I'm building a web frontend for remote logs monitoring,
having to manage about 10 different geographic locations I've bumped into the 3 headed hellhound some of you already have.
Is there any way to get from a remote HPUX shell variable the…

Joao Figueiredo
- 3,120
- 3
- 31
- 40
1
vote
0 answers
Handling timezones in MySQL without zoneinfo
There seems to be no way to get MySQL to return formatted times from timestamps without zoneinfo being imported.
If I use
SET time_zone = '-4:00'
and I create a timestamp for 6:00PM Nov 1, when daylight saving time passes, and the timezone changes…

Sean
- 2,632
- 2
- 27
- 35
1
vote
0 answers
dateutil / zoneinfo Error When trying to Run py2exe Application
I have a program that I am trying to package as a *.exe using py2exe. I am stuck on the following error:
C:\Users\ME\Desktop\my_gui\dist>my_gui.exe
[Error 3] The system cannot find the path specified:…

derNincompoop
- 672
- 11
- 22
1
vote
2 answers
javazic timezone format
Where can I find documentation about the binary data format outputted by javazic (the files shipped in Debian's tzdata-java package)?
The standard format used in /usr/share/zoneinfo has no explicit concept of daylight savings time versus standard…

Ken Bloom
- 57,498
- 14
- 111
- 168
0
votes
1 answer
Convert DataTime time zone number into text value like: EST
I am looking for a way to output/format
String.Format("{0:h:MMtt zzzz}", symbol.QuoteData.LastTrade);
into more meaningful format like
String.Format("{0:h:MMtt EST}", symbol.QuoteData.LastTrade);

Artem Gassan
- 45
- 1
- 5
0
votes
0 answers
How can tzdata.zi file can be identified not as a .zi file Unambiguously?
I've got the tzdata.zi file (appears under the mcr.microsoft.com/dotnet/sdk:6.0 docker image).
From what I know it's a "zone info" file.
Unfortunately it got the same extension of .zi (which is also equivalent to zip file).
.zip file can be…

KaliTheGreat
- 579
- 6
- 17
0
votes
0 answers
How do I convert a particular time to a UTC time in python?
Currently working on a project where I need to manipulate a particular store's opening and closing times to UTC in Python. The opening and closing times are date independent.
For instance , I have a opening/closing times as
00:00:00
00:10:00
I'd…

BJay
- 1
- 2
0
votes
0 answers
Comparing pytz.timezone instances
I need to compare pytz.timezones for equality, and the behavior I'm observing is quite unintuitive.
I've read a lot about Python time zones, pytz, zoneinfo, LMT, etc., both on SO and generally on the web. The behavior I'm concerned about does not…

Georgi Peev
- 11
- 1
0
votes
1 answer
exchangelib Library failure in Python with PyInstaller
I am writing an application that will connect to the Exchange Server and send an email to a recipient on a scheduled basis. This application depends upon a successful import exchanglib.
I'm able to import exchangelib and get all the components I…

AGuler
- 1
0
votes
0 answers
Python: ZoneInfo.astimezone() not making sense
I am migrating away from pytz (the fastest footgun in the west), to ZoneInfo.
I am doing a test with timezone Africa/Johannesburg, which is GMT+2 (Note: GMT = UTC). I expect the following to yield the same result, however the GMT+2 one is…

run_the_race
- 1,344
- 2
- 36
- 62
0
votes
0 answers
Time conversion from UTC to Europe/Warsaw
I'm trying to convert UTC time to Europe/Warsaw time. Warsaw time is now UTC + 2 hours. I don't know why I get result with time 30 minutes eariler. I'm parsing date from string similar to: 7:27:02 AM or 2:16:28 PM.
print(time_str) #6:47:46 PM
format…

user3565923
- 153
- 2
- 12
0
votes
2 answers
Datetime with timezone
As far as I understood ZoneInfo in python 3.9 fixes the issue of "The year of 2038" problem with DST time issue. But I can see that the timedelta is wrong. Below it should have been 2 hours, not 3. What is wrong?
from zoneinfo import…

guyguyguy12345
- 539
- 3
- 11