Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(1)  |  Derive(0)  |  Import(3)

src/d/a/DateTime-4.0.1/src/DateTime/tests/test_datetime.py   DateTime(Download)
import pytz
 
from DateTime.DateTime import _findLocalTimeZoneName
from DateTime import DateTime
 
        dt = DateTime('Wed, 19 Nov 2003 18:32:07 -0215')
        dt_string = dt.strftime(format)
        dt_local = dt.toZone(_findLocalTimeZoneName(0))
        dt_localstring = dt_local.strftime(format)
        self.assertEqual(dt_string, dt_localstring)

src/c/y/cyn.in-HEAD/products/Calendaring/tests/__init__.py   cyn.in(Download)
# Make sure we pretend we are in Brazil when running these tests:
from time import time, localtime
from DateTime.DateTime import _findLocalTimeZoneName, DateTime
 
DateTime._localzone0 = 'GMT-3'

src/p/r/Products.Calendaring-0.5b1/Products/Calendaring/tests/__init__.py   Products.Calendaring(Download)
# Make sure we pretend we are in Brazil when running these tests:
from time import time, localtime
from DateTime.DateTime import _findLocalTimeZoneName, DateTime
 
DateTime._localzone0 = 'GMT-3'