Skip to content

Commit d64fe19

Browse files
committed
gh-118469: Add documentation for sqlite3 PEP-249 constructors
Co-authered-by: Firat <firatv@protonmail.com>
1 parent 4e75509 commit d64fe19

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Doc/library/sqlite3.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,40 @@ Module functions
424424
Note: *typename* and the name of the type in your query are matched
425425
case-insensitively.
426426

427+
.. function:: Date(year, month, day)
428+
429+
This function constructs an object holding a date value.
430+
431+
.. function:: Time(hour, minute, second)
432+
433+
This function constructs an object holding a time value.
434+
435+
.. function:: Timestamp(year, month, day, hour, minute, second)
436+
437+
This function constructs an object holding a time stamp value.
438+
439+
.. function:: DateFromTicks(ticks)
440+
441+
This function constructs an object holding a date value from the given ticks
442+
value (number of seconds since the epoch; see the documentation of the
443+
standard Python :mod:`time` module for details).
444+
445+
.. function:: TimeFromTicks(ticks)
446+
447+
This function constructs an object holding a time value from the given ticks
448+
value (number of seconds since the epoch; see the documentation of the
449+
standard Python :mod:`time` module for details).
450+
451+
.. function:: TimestampFromTicks(ticks)
452+
453+
This function constructs an object holding a time stamp value from the given
454+
ticks value (number of seconds since the epoch; see the documentation of the
455+
standard Python :mod:`time` module for details).
456+
457+
.. function:: Binary(string)
458+
459+
This function constructs an object capable of holding a binary (long) string
460+
value.
427461

428462
.. _sqlite3-module-constants:
429463

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy