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

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Return the object in ISO 8601-compatible format containing the
date, time with seconds-precision and the time zone identifier.

See: http://www.w3.org/TR/NOTE-datetime

Dates are output as: YYYY-MM-DDTHH:MM:SSTZD
    T is a literal character.
    TZD is Time Zone Designator, format +HH:MM or -HH:MM

If the instance is timezone naive (it was not specified with a timezone(more...)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/i18nl10n.py   Products.CMFPlone(Download)
    if context is None:
        # when without context, we cannot do very much.
        return time.ISO8601()
 
    if request is None:

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/i18nl10n.py   Products.CMFPlone(Download)
    if context is None:
        # when without context, we cannot do very much.
        return time.ISO8601()
 
    if request is None:

src/e/r/erp5-HEAD/product/Formulator/Widget.py   erp5(Download)
    if value:
      # http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dateTime
      attr_dict['{%s}date-value' % OFFICE_URI] = value.ISO8601()
      # According http://wiki.services.openoffice.org/wiki/Documentation/How_Tos/Calc:_Date_%26_Time_functions
      # default offset is 30/12/1899

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testDateTimeIntegration.py   Products.CMFPlone(Download)
    def testEffectiveDate(self):
        obj = self.folder
        date = DateTime() + 365             # expire one year from today
        date = DateTime(date.ISO8601())     # but strip off milliseconds
        obj.setEffectiveDate(date)
    def testExpirationDate(self):
        obj = self.folder
        date = DateTime() + 365             # expire one year from today
        date = DateTime(date.ISO8601())     # but strip off milliseconds
        obj.setExpirationDate(date)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testDateTimeIntegration.py   Products.CMFPlone(Download)
    def testEffectiveDate(self):
        obj = self.folder
        date = DateTime() + 365             # expire one year from today
        date = DateTime(date.ISO8601())     # but strip off milliseconds
        obj.setEffectiveDate(date)
    def testExpirationDate(self):
        obj = self.folder
        date = DateTime() + 365             # expire one year from today
        date = DateTime(date.ISO8601())     # but strip off milliseconds
        obj.setExpirationDate(date)