Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'class,': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'scripts,': 0.09; 'sep': 0.09; "wouldn't": 0.11; 'suggest': 0.11; 'library': 0.15; 'presume': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'scripts.': 0.16; 'subject:issue': 0.16; 'timezones': 0.16; 'tweak': 0.16; 'module': 0.19; 'import': 0.21; 'not,': 0.21; 'supported': 0.26; 'recognized': 0.27; 'see,': 0.27; 'header:X-Complaints-To:1': 0.28; 'class': 0.29; 'install': 0.29; '(from': 0.30; 'implement': 0.32; 'extract': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'along': 0.35; 'doing': 0.35; 'received:org': 0.36; 'but': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'enough': 0.36; 'far': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'most': 0.61; 'world': 0.63; 'email addr:gmail.com': 0.63; 'study': 0.66; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: datetime issue Date: Sun, 16 Sep 2012 15:35:12 -0400 Organization: > Bestiaria Support Staff < References: <52847c35-388c-4758-b72d-1d1859b788a3@googlegroups.com> <8370412f-5176-45ff-87eb-72cbca5149d5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-21-126.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347824120 news.xs4all.nl 6925 [2001:888:2000:d::a6]:42631 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29346 On Sun, 16 Sep 2012 08:43:14 -0700 (PDT), pandora.koura@gmail.com declaimed the following in gmane.comp.python.general: > > import pytz fails in my webhost unfortunately :( > This module is not supported by hostgator. I presume you are able to install your own Python scripts, or you wouldn't even be able to try the import. So far as I can see, pytz is a pure Python package -- no binaries... You should be able to extract it onto your local development machine, then copy the entire pytz system from your site-packages to whereever you install your Python scripts. You might have to tweak (from inside your script) the pythonpath before doing the import, but it should be doable. If not, then I suggest you study the Python Library reference section for the datetime module -- in particular the part about using the tzinfo class, and implement just enough to do your time translation. Most of pytz is just an implementation of the tzinfo class along with a database of recognized world timezones and offsets. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/