sqlite3.TimestampFromTicks
Prev: sqlite3.Timestamp | Up: sqlite3 | Next: sqlite3.Warning
Rel: sqlite3.adapt, sqlite3.Binary, sqlite3.Blob, sqlite3.complete_statement
Ref: docs.python.org — sqlite3.TimestampFromTicks
Tags: #public #python3 #stdlib #sqlite3
Import
import sqlite3
from sqlite3 import TimestampFromTicks
Signature & Overview
sqlite3.TimestampFromTicks(ticks)
sqlite3.TimestampFromTicks() function.
Usage
import datetime
import sqlite3
ts = sqlite3.TimestampFromTicks(0)
assert isinstance(ts, datetime.datetime)
Gotchas
- Returns a naive local
datetime: Preferdatetime.fromtimestamp(ticks, timezone.utc).
REPL Inspect
from sqlite3 import TimestampFromTicks
help(TimestampFromTicks)
Linked from
Related notes
- tuts/python3/stdlib_module/sqlite3 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Timestamp Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Warning Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/adapt Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Binary Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Blob Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/complete_statement Linked here; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib