• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(35)  |  Call(0)  |  Derive(0)  |  Import(35)
int(x[, base]) -> integer

Convert a string or number to an integer, if possible.  A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!)  When converting a string, use
the optional base.  It is an error to supply a base when converting a
non-string.  If base is zero, the proper base is guessed based on the
string content.  If the argument is outside the integer range a
long object will be returned instead.

src/p/y/py-postgresql-HEAD/postgresql/python/datetime.py   py-postgresql(Download)
 
##
# stdlib.datetime representation of PostgreSQL 'infinity' and '-infinity'.
infinity_datetime = datetime.datetime(datetime.MAXYEAR, 12, 31, 23, 59, 59, 999999)
negative_infinity_datetime = datetime.datetime(datetime.MINYEAR, 1, 1, 0, 0, 0, 0)
 
infinity_date = datetime.date(datetime.MAXYEAR, 12, 31)

src/p/y/py-postgresql-1.0.2/postgresql/python/datetime.py   py-postgresql(Download)
 
##
# stdlib.datetime representation of PostgreSQL 'infinity' and '-infinity'.
infinity_datetime = datetime.datetime(datetime.MAXYEAR, 12, 31, 23, 59, 59, 999999)
negative_infinity_datetime = datetime.datetime(datetime.MINYEAR, 1, 1, 0, 0, 0, 0)
 
infinity_date = datetime.date(datetime.MAXYEAR, 12, 31)

src/m/i/MidgardPyMVC-HEAD/midgardmvc/lib/utils/fixed_datetime.py   MidgardPyMVC(Download)
        dtout = fmt % tuple(args)        
        return dtout + tzout
 
from datetime import date, timedelta, time, tzinfo, MAXYEAR, MINYEAR
 

src/z/s/zsi-HEAD/ZSI/TCtimes.py   zsi(Download)
from ZSI.wstools.Namespaces import SCHEMA
import operator, re, time as _time
from time import mktime as _mktime, localtime as _localtime, gmtime as _gmtime
from datetime import tzinfo as _tzinfo, timedelta as _timedelta,\
    datetime as _datetime, MINYEAR, MAXYEAR
from math import modf as _modf
 
    # Fix local copy of time tuple
    ltv = list(_fix_none_fields(tv))
 
    if ltv[0] < MINYEAR + 1 or ltv[0] > MAXYEAR - 1:
        return tv # Unable to fix timestamp
 
    _tz_from = _tz_to_tzinfo(tz_from)

src/p/y/pywebsvcs-HEAD/trunk/zsi/ZSI/TCtimes.py   pywebsvcs(Download)
from ZSI.wstools.Namespaces import SCHEMA
import operator, re, time as _time
from time import mktime as _mktime, localtime as _localtime, gmtime as _gmtime
from datetime import tzinfo as _tzinfo, timedelta as _timedelta,\
    datetime as _datetime, MINYEAR, MAXYEAR
from math import modf as _modf
 
    # Fix local copy of time tuple
    ltv = list(_fix_none_fields(tv))
 
    if ltv[0] < MINYEAR + 1 or ltv[0] > MAXYEAR - 1:
        return tv # Unable to fix timestamp
 
    _tz_from = _tz_to_tzinfo(tz_from)

src/p/y/pywebsvcs-HEAD/zsi/ZSI/TCtimes.py   pywebsvcs(Download)
from ZSI.wstools.Namespaces import SCHEMA
import operator, re, time as _time
from time import mktime as _mktime, localtime as _localtime, gmtime as _gmtime
from datetime import tzinfo as _tzinfo, timedelta as _timedelta,\
    datetime as _datetime, MINYEAR, MAXYEAR
from math import modf as _modf
 
    # Fix local copy of time tuple
    ltv = list(_fix_none_fields(tv))
 
    if ltv[0] < MINYEAR + 1 or ltv[0] > MAXYEAR - 1:
        return tv # Unable to fix timestamp
 
    _tz_from = _tz_to_tzinfo(tz_from)

src/i/c/icemac-HEAD/addressbook/trunk/src/icemac/addressbook/browser/addressbook/list.py   icemac(Download)
import zope.schema.interfaces
 
 
END_OF_DATE = datetime.date(datetime.MAXYEAR,12,31)
END_OF_DATETIME = datetime.datetime(datetime.MAXYEAR,12,31,23,59,59)
 
 

src/i/c/icemac.addressbook-1.4.0/src/icemac/addressbook/browser/addressbook/list.py   icemac.addressbook(Download)
import zope.schema.interfaces
 
 
END_OF_DATE = datetime.date(datetime.MAXYEAR,12,31)
END_OF_DATETIME = datetime.datetime(datetime.MAXYEAR,12,31,23,59,59)
 
 

src/m/a/matplotlib-HEAD/matplotlib/lib/dateutil/rrule.py   matplotlib(Download)
            fixday = False
            if freq == YEARLY:
                year += interval
                if year > datetime.MAXYEAR:
                    self._len = total
                    return
                ii.rebuild(year, month)
                    if month == 0:
                        month = 12
                        year -= 1
                    if year > datetime.MAXYEAR:
                        self._len = total
                        return
                ii.rebuild(year, month)
                        if month == 13:
                            month = 1
                            year += 1
                            if year > datetime.MAXYEAR:
                                self._len = total
                                return
                        daysinmonth = calendar.monthrange(year, month)[1]

src/i/c/icemac.addressbook-1.4.0/a/browser/addressbook/list.py   icemac.addressbook(Download)
import zope.schema.interfaces
 
 
END_OF_DATE = datetime.date(datetime.MAXYEAR,12,31)
END_OF_DATETIME = datetime.datetime(datetime.MAXYEAR,12,31,23,59,59)
 
 

  1 | 2 | 3 | 4 | 5 | 6 | 7  Next