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

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)
Return the date/time as a floating-point number in UTC,
in the format used by the python time module.

Note that it is possible to create date/time values with
DateTime that have no meaningful value to the time module.

src/e/r/erp5-HEAD/product/ERP5/mixin/periodicity.py   erp5(Download)
    while new_date.day() == date.day():
      if timezone is not None:
        new_date = DateTime(new_date.timeTime() + 3600.0, timezone)
      else:
        new_date = DateTime(new_date.timeTime() + 3600.0)

src/c/y/cyn.in-HEAD/src/ubify.viewlets/ubify/viewlets/browser/kssmethods.py   cyn.in(Download)
        datefromlasttimestamp = DateTime(flasttimestamp)
 
        newlastdate = datefromlasttimestamp.timeTime()
 
        zopecommands = self.getCommandSet('zope')
                flasttimestamp = float(lasttimestamp)
                datefromlasttimestamp = DateTime(flasttimestamp)
                newlastdate = datefromlasttimestamp.timeTime()
 
                disc_container = pdt.getDiscussionFor(contobj)

src/c/y/cyn.in-HEAD/src/ubify.viewlets/ubify/viewlets/browser/custommethods.py   cyn.in(Download)
                flasttimestamp = float(lasttimestamp)
                datefromlasttimestamp = DateTime(flasttimestamp)
                newlastdate = datefromlasttimestamp.timeTime()
                marker_delete_objectid = ''
                removeallcomments = False

src/p/r/Products.CacheSetup-1.2.1/Products/CacheSetup/content/base_cache_rule.py   Products.CacheSetup(Download)
        if timeout:
            time = DateTime()
            time = timeout * (int(time.timeTime()/timeout) - 1)
            time = DateTime(time)
            dates.append(time)
            if time is None:
                time = DateTime()
            etag = self._addEtagComponent(etag, int(time.timeTime()/timeout))
        return etag
 

src/s/l/slapos.core-HEAD/master/bt5/slapos_rest_api/DocumentTemplateItem/portal_components/SlapOSRestAPIV1.py   slapos.core(Download)
            document_date = document.getModificationDate() or \
              document.bobobase_modification_time()
            if int(document_date.timeTime()) <= int(modified_since.timeTime()):
              # document was not modified since
              self.REQUEST.response.setStatus(304)

src/p/r/Products.CacheSetup-1.2.1/Products/CacheSetup/content/header_set.py   Products.CacheSetup(Download)
                mod_time = DateTime(mod_time)
            if mod_time is not None:
                mod_time_st = rfc1123_date(mod_time.timeTime())
                headers_to_add.append(('Last-modified', mod_time_st))
        elif last_modified == 'delete':

src/p/r/Products.sqlpfgadapter-1.0.1/Products/sqlpfgadapter/content/sqlAdapter.py   Products.sqlpfgadapter(Download)
            # Use Zope's easy DateTime conversion
            zope_dt = ZopeDateTime(value)
            value = datetime.fromtimestamp(zope_dt.timeTime())
        return value
 

src/p/r/Products.ResourceRegistries-HEAD/Products/ResourceRegistries/tests/testKSSRegistry.py   Products.ResourceRegistries(Download)
        self.tool.setDebugMode(False)
        self.assertExpiresNotEqual(response.getHeader('Expires'), soon.timeTime())
        self.assertExpiresEqual(response.getHeader('Expires'), now.timeTime())
        self.assertEqual(response.getHeader('Cache-Control'), 'max-age=0')
 

src/p/r/Products.ResourceRegistries-3.0/Products/ResourceRegistries/tests/testKSSRegistry.py   Products.ResourceRegistries(Download)
        self.tool.setDebugMode(False)
        self.assertExpiresNotEqual(response.getHeader('Expires'), soon.timeTime())
        self.assertExpiresEqual(response.getHeader('Expires'), now.timeTime())
        self.assertEqual(response.getHeader('Cache-Control'), 'max-age=0')
 

src/p/r/Products.CacheSetup-1.2.1/Products/CacheSetup/tests/test_header_set.py   Products.CacheSetup(Download)
        self.assertEqual(d['max-age'], '30')
        d = self._parseHeaders(headers_to_add)
        texpires = rfc1123_date(now.timeTime()+30)
        self.assertEqual(d['Expires'], texpires)
        h.setMaxAge(0)
        (headers_to_add, headers_to_remove) = h.getHeaders(expr_context)
        d = self._getCacheControl((headers_to_add, headers_to_remove))
        self.assertEqual(d['max-age'], '0')
        d = self._parseHeaders(headers_to_add)
        texpires = rfc1123_date(now.timeTime()-10*365*24*3600)

  1 | 2  Next