Did I find the right examples for you? yes no

All Samples(2415)  |  Call(0)  |  Derive(0)  |  Import(2415)
datetime.tzinfo timezone definitions generated from the
Olson timezone database:

    ftp://elsie.nci.nih.gov/pub/tz*.tar.gz

See the datetime section of the Python Library Reference for information
on how to use these modules.

src/m/o/MongoAlchemy-0.15/mongoalchemy/fields/fields.py   MongoAlchemy(Download)
        self.use_tz = use_tz
        if self.use_tz:
            import pytz
            self.utc = pytz.utc
            assert self.min is None and self.max is None
    def unwrap(self, value, session=None):
        self.validate_unwrap(value)
        value = self.constructor(value)
        if value.tzinfo is not None:
            import pytz
    def created(obj):
        if tz_aware:
            import pytz
            return pytz.utc.localize(datetime.utcnow())
        return datetime.utcnow()
    def modified(obj):
        if tz_aware:
            import pytz
            return pytz.utc.localize(datetime.utcnow())
        return datetime.utcnow()

src/m/o/MongoAlchemy-HEAD/mongoalchemy/fields/fields.py   MongoAlchemy(Download)
        self.use_tz = use_tz
        if self.use_tz:
            import pytz
            self.utc = pytz.utc
            assert self.min is None and self.max is None
    def unwrap(self, value, session=None):
        self.validate_unwrap(value)
        value = self.constructor(value)
        if value.tzinfo is not None:
            import pytz
    def created(obj):
        if tz_aware:
            import pytz
            return pytz.utc.localize(datetime.utcnow())
        return datetime.utcnow()
    def modified(obj):
        if tz_aware:
            import pytz
            return pytz.utc.localize(datetime.utcnow())
        return datetime.utcnow()

src/e/n/energywise-HEAD/Code/versions.py   energywise(Download)
 
import  datetime
import  pytz
import  csv
import  cPickle as pickle
import  cPickle as pickle
import  numpy as np
import  pytz
import  datetime
import  string
import  time
import  numpy as np
import  dateutil
import  pytz

src/c/o/commcare-hq-HEAD/custom/_legacy/hsph/reports/old/field_management.py   commcare-hq(Download)
import datetime
import dateutil
import pytz
from corehq.apps.fixtures.models import FixtureDataItem, FixtureDataType
from corehq.apps.reports.standard import ProjectReportParametersMixin, DatespanMixin, CustomProjectReport

src/c/o/commcare-hq-HEAD/corehq/apps/hqpillow_retry/management/commands/run_pillow_retry_queue.py   commcare-hq(Download)
from django.conf import settings
from psycopg2._psycopg import InterfaceError
import pytz
from hqscripts.generic_queue import GenericEnqueuingOperation
from pillow_retry.models import PillowError

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py   antisocial(Download)
 
try:
    import pytz
except ImportError:
    pytz = None

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/db/backends/oracle/base.py   antisocial(Download)
 
try:
    import pytz
except ImportError:
    pytz = None

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/db/backends/mysql/base.py   antisocial(Download)
 
try:
    import pytz
except ImportError:
    pytz = None

src/o/p/openerp-client-5.0.0-3/bin/widget/view/form_gtk/calendar.py   openerp-client(Download)
        if 'tz' in rpc.session.context and timezone:
            try:
                import pytz
                lzone = pytz.timezone(rpc.session.context['tz'])
                szone = pytz.timezone(rpc.session.timezone)
            if 'tz' in rpc.session.context and timezone:
                try:
                    import pytz
                    lzone = pytz.timezone(rpc.session.context['tz'])
                    szone = pytz.timezone(rpc.session.timezone)
            if 'tz' in rpc.session.context and timezone:
                try:
                    import pytz
                    lzone = pytz.timezone(rpc.session.context['tz'])
                    szone = pytz.timezone(rpc.session.timezone)

src/a/p/appscale-HEAD/AppServer/google/appengine/tools/devappserver2/admin/cron_handler.py   appscale(Download)
 
try:
  import pytz
except ImportError:
  pytz = None

Previous  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next