./time/py-tzlocal, Python tzinfo object for the local timezone

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 5.3.1nb1, Package name: py312-tzlocal-5.3.1nb1, Maintainer: pkgsrc-users

This Python module returns a tzinfo object with the local timezone
information under Unix and Win-32. It requires pytz, and returns
pytz tzinfo objects.

This module attempts to fix a glaring hole in pytz, that there is
no way to get the local timezone information, unless you know the
zoneinfo name, and under several Linux distros that's hard or
impossible to figure out.

Also, with Windows different timezone system using pytz isn't of
much use unless you separately configure the zoneinfo timezone
name.

With tzlocal you only need to call get_localzone() and you will
get a tzinfo object with the local time zone info. On some Unices
you will still not get to know what the timezone name is, but you
don't need that when you have the tzinfo file. However, if the
timezone name is readily available it will be used.


Required to run:
[time/py-pytz] [lang/python310]

Master sites:

Filesize: 30.04 KB

Version history: (Expand)


CVS history: (Expand)


   2025-04-13 14:41:53 by Thomas Klausner | Files touched by this commit (2)
Log message:
py-tzlocal: fix for setuptools>=78
   2025-03-06 09:04:13 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-tzlocal: updated to 5.3.1

5.3.1 (2025-03-05)

- Now only warns bout /etc/timezone if it is actually conflicting with
  other timezone configurations.
   2025-02-13 17:12:08 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-tzlocal: updated to 5.3

5.3 (2025-02-13)

- Now supports Python 3.9 to 3.13, and no longer requires backports.zoneinfo.
- Debian is for some reason removing support for /etc/timezone, which is bad,
  because that's the only place where the timezone is  stated in plain text,
  and what's worse, they don't delete it. So we can't trust it now,
  so when we have multiple configs, we are forced to just ignore it.
- Attempts to return a ZoneInfo object also for UTC.
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-08-15 23:55:19 by Thomas Klausner | Files touched by this commit (6)
Log message:
*: remove Python 3.9 specific dependencies

in a quest to fix pbulk
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
   2023-10-23 09:58:49 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-tzlocal: updated to 5.2

5.2 (2023-10-22)
- Added a pre-commit config
- Updated python versions [hugovk]
- Added type hints for the public functions
- Moved to using pyproject.toml for project config.
   2023-10-04 23:06:09 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-tzlocal: updated to 5.1

5.1 (2023-10-04)
----------------
- The Unicode data doesn't change tz names when IANA does, so what is current
  in IANA is treated as an alias in Unicode data. This version handles that.