Pelokalan
Python ID
id en
Masuk
Proyek
library__datetime.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
Equivalent to ``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``, and to ``t1 * -1``. (1)(4)
Equivalent to ``+t`` when ``t.days >= 0``, and to ``-t`` when ``t.days < 0``. (2)
Return the total number of seconds contained in the duration. Equivalent to ``td / timedelta(seconds=1)``. For interval units other than seconds, use the division form directly (for example, ``td / timedelta(microseconds=1)``).
This is equivalent to ``date.fromtimestamp(time.time())``.
Return a :class:`.date` corresponding to *date_string*, parsed according to *format*. This is equivalent to::
``d.timetuple()`` is equivalent to::
For a date ``d``, ``str(d)`` is equivalent to ``d.isoformat()``.
``d.ctime()`` is equivalent to::
Equivalent to::
Setara dengan::
This method is functionally equivalent to :meth:`now`, but without a ``tz`` parameter.
On the POSIX compliant platforms, it is equivalent to the following expression::
If *format* does not contain microseconds or time zone information, this is equivalent to::
For a :class:`.datetime` instance ``d``, ``str(d)`` is equivalent to ``d.isoformat(' ')``.
If *format* does not contain microseconds or timezone information, this is equivalent to::
For a time ``t``, ``str(t)`` is equivalent to ``t.isoformat()``.
Equivalent to ``%m/%d/%y``.
Equivalent to ``%Y-%m-%d``, the ISO 8601 format.
Equivalent to ``%b``.
Equivalent to ``%H:%M``.
ISO 8601 time format, equivalent to ``%H:%M:%S``.
Using ``datetime.strptime(date_string, format)`` is equivalent to::