Skip to main content

Module timestamp

Module timestamp 

Source
Available on crate features model-mysql or model-postgres or model-sqlite only.
Expand description

Timestamp: a UTC instant with microsecond precision, the type of the created_at / updated_at / deleted_at columns the repository maintains (18.30.0).

How it is stored, per backend:

BackendColumn typeWhat rws writes
SQLiteTEXT2026-11-04T12:34:56.123456Z (RFC 3339, sorts as text)
PostgreSQLTIMESTAMPTZ (or TIMESTAMP)the same text, cast to TIMESTAMPTZ
MySQLDATETIME(6)2026-11-04 12:34:56.123456 (UTC, no zone)

Reading accepts every form these produce (T or space, a fraction of 0 to 9 digits, Z, +00, +00:00 or no zone, a date alone) and, for an integer column, Unix seconds.

Structsยง

Timestamp
A UTC instant, microseconds since the Unix epoch.