Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,34 @@ Module functions
Note: *typename* and the name of the type in your query are matched
case-insensitively.

.. function:: Date(year, month, day, /, tzinfo=None, *, fold=0)

Construct a date instance as :class:`datetime.date`.

.. function:: Time(hour, minute, second, /, tzinfo=None, *, fold=0)

Construct a time instance as :class:`datetime.time`.

.. function:: Timestamp(year, month, day, /, hour=0, minute=0, second=0, tzinfo=None, *, fold=0)

Construct a time stamp instance as :class:`datetime.datetime`.

.. function:: DateFromTicks([secs])

Construct a :class:`~sqlite3.Date` instance from the given number of seconds since the epoch, converted to local time.
(see the documentation of the standard Python :mod:`time` module and its :func:`~time.localtime` function for details).

.. function:: TimeFromTicks([secs])

Constructs a :class:`~sqlite3.Time` instance from the given number of seconds since the epoch, converted to local time.

.. function:: TimestampFromTicks([secs])

Construct a :class:`~sqlite3.Timestamp` from the given number of seconds since the epoch, converted to local time.

.. function:: Binary(object)

Construct a BLOB as a :class:`memoryview` from a :term:`bytes-like object`.

.. _sqlite3-module-constants:

Expand Down
Loading