I am looking at using pytz in a scheduling application which will be
used internationally . I would like to be able to update the definition
files that pytz uses monthly or bi-monthly.
As far as I can tell, pytz seems to be updated (fairly) regularly to
the newest tzdata, but I don't want to have to update my pytz, just
it's definitions. http://www.twinsun.com/tz/tz-link.htm says that pytz "compiles tz
source into Python." Does this mean that there is already a method for
updating the definitions?
Any help would be greatly appreciated, even if it is to point out
something obvious which I over looked.
- Robby 1 2272
_robby wrote:
I am looking at using pytz in a scheduling application which will be
used internationally . I would like to be able to update the definition
files that pytz uses monthly or bi-monthly.
As far as I can tell, pytz seems to be updated (fairly) regularly to
the newest tzdata, but I don't want to have to update my pytz, just
it's definitions.
http://www.twinsun.com/tz/tz-link.htm says that pytz "compiles tz
source into Python." Does this mean that there is already a method for
updating the definitions?
Any help would be greatly appreciated, even if it is to point out
something obvious which I over looked.
- Robby
pytz's build process is rather complicated (e.g., a list of all time
zones is appended to pytz/__init__.py). I really don't think it would be
worth the effort.
python-dateutil [1] [2] provides time zone support similar to pytz's,
among other features. It keeps the time zone files in a tarball and I'm
pretty sure it would be easy to update.
I still don't get why you'd want to go to the effort though. Upgrading
the whole package is easy. It's not like pytz gets a new API every version.
[1] <http://labix.org/python-dateutil>
[2] <http://pypi.python.org/pypi/python-dateutil/>
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: scott |
last post by:
I am trying to convert a python app that uses matplotlib to a
standalone executable using py2exe.
After running py2exe and executing my app I get the following stack
trace:
Traceback (most recent call last):
File "gcToCsv.py", line 5, in ?
File "plot_output.pyc", line 1, in ?
File "pylab.pyc", line 1, in ?
|
by: Support |
last post by:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
|
by: nicolas_riesch |
last post by:
Does someone know if the module pytz
(http://sourceforge.net/projects/pytz/) is thread-safe ?
I have not seen it explicitely stated, and just wanted to be sure, as I
want to use it.
That's because in the file pytz/tzinfo.py, I see global variables
_timedelta_cache, _datetime_cache, _ttinfo_cache, which are
dictionnaries and are used as cache.
I always thought that you must protect shared data with locks when
multithreading, but I don't...
|
by: CSN |
last post by:
Is it possible to update the timezone part of
timestamp fields in a single query? I have a bunch of
values that are -06 I need changed to -07.
BTW, better to use 'timestamp without time zone' or
'timestamp with time zone'?
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
|
by: mimmo |
last post by:
I have a problem while calculating timezone (from Europe/Rome to
Brazil/East).
Can someone help me ??
Thank you,
Mimmo.
On this site
http://www.timezoneconverter.com/cgi-bin/tzc.tzc
I have for this date 2003/01/01 00:00:00:
| |
by: John Lafrowda |
last post by:
Hi all,
I'm trying to handle two projects in one solution (.net 2002, both projects
are VB). The first project contains only some public constant definitions
(for the moment) and compiles into class libarary. The second one is builds
an executable which has a reference to the assembly of the first project to
retrieve global constant definitions. The whole thing works fine as long as
no definitions are changed in the library project.
...
|
by: David Pratt |
last post by:
Hi. I am creating a couple of small methods to help me manage time from
UTC as standard but I am getting strange results.
If I start with a datetime of 2005-12-12 14:30:00 in timezone
'America/Halifax'
and I want to turn this into a UTC representation.
from datetime import datetime
from pytz.reference import UTC
import pytz
|
by: Sanjay |
last post by:
Hi All,
Using pytz, I am facing a problem with Asia/Calcutta, described below.
Asia/Calcutta is actually IST, which is GMT + 5:30. But while using
pytz, it was recognized as HMT (GMT + 5:53). While I digged into the
oslan database, I see the following:
# Zone NAME GMTOFF RULES FORMAT
Zone Asia/Calcutta 5:53:28 - LMT 1880 # Kolkata
|
by: Sanjay |
last post by:
Hi All,
I am using pytz.common_timezones to populate the timezone combo box of
some user registration form. But as it has so many timezones (around
400), it is a bit confusing to the users. Is there a smaller and more
practical set? If not, some suggestions on how to handle the
registration form effectively would help me a lot.
thanks
Sanjay
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |