Lines Matching refs:strptime
557 :ref:`strftime-strptime-behavior`.
564 See section :ref:`strftime-strptime-behavior`.
729 .. classmethod:: datetime.strptime(date_string, format)
732 *format*. This is equivalent to ``datetime(*(time.strptime(date_string,
734 can't be parsed by :func:`time.strptime` or if it returns a value which isn't a
736 :ref:`strftime-strptime-behavior`.
1057 :ref:`strftime-strptime-behavior`.
1064 See section :ref:`strftime-strptime-behavior`.
1082 >>> # Using datetime.strptime()
1083 >>> dt = datetime.strptime("21/11/06 16:30", "%d/%m/%y %H:%M")
1291 :ref:`strftime-strptime-behavior`.
1298 See section :ref:`strftime-strptime-behavior`.
1583 .. _strftime-strptime-behavior:
1585 :meth:`strftime` and :meth:`strptime` Behavior
1594 Conversely, the :meth:`datetime.strptime` class method creates a
1596 corresponding format string. ``datetime.strptime(date_string, format)`` is
1597 equivalent to ``datetime(*(time.strptime(date_string, format)[0:6]))``.
1731 When used with the :meth:`strptime` method, the ``%p`` directive only affects
1741 available). When used with the :meth:`strptime` method, the ``%f``
1766 When used with the :meth:`strptime` method, ``%U`` and ``%W`` are only used