MeridianMERIDIAN

timestamp

31 timestamp types: 29 with a format string, 1 a sibling also accepts and reads alike.

31 types

The 31 timestamp types

2024-03-04 05:06:07 in each type's format, against every sibling's rule

TypeFormatWrites it asAlso accepted by
SQL Timestamp with Microseconds and Offset
sql_microseconds_offset · TIMESTAMPTZ
%Y-%m-%d %H:%M:%S.%f%z2024-03-04 05:06:07.123456+00pg_short_offset
%d/%b/%Y:%H:%M:%S %z04/Mar/2024:05:06:07 +00—
C ctime / asctime Format
ctime · TIMESTAMP
%a %b %-d %H:%M:%S %YMon Mar 4 05:06:07 2024—
DMY Hour-Minute Datetime
dmy_hm · TIMESTAMP
%d/%m/%Y %H:%M04/03/2024 05:06—
European Dot Timestamp (DMY 24h)
dot_dmy_24h · TIMESTAMP
%d.%m.%Y %H:%M:%S04.03.2024 05:06:07—
Dot YMD Timestamp (24h)
dot_ymd_24h · TIMESTAMP
%Y.%m.%d %H:%M:%S2024.03.04 05:06:07—
Unix Epoch Nanoseconds
epoch_nanoseconds · TIMESTAMP
—1705325400000000000sample—
ISO 8601
iso_8601 · TIMESTAMP
%Y-%m-%dT%H:%M:%SZ2024-03-04T05:06:07Z—
ISO 8601 Compact
iso_8601_compact · TIMESTAMP
%Y%m%dT%H%M%S20240304T050607—
ISO 8601 with Microseconds and Offset
iso_8601_micros_offset · TIMESTAMPTZ
%Y-%m-%dT%H:%M:%S.%f%z2024-03-04T05:06:07.123456+00—
ISO 8601 with Microseconds
iso_8601_microseconds · TIMESTAMP
%Y-%m-%dT%H:%M:%S.%fZ2024-03-04T05:06:07.123456Z—
ISO 8601 with Milliseconds and Offset
iso_8601_millis_offset · TIMESTAMPTZ
%Y-%m-%dT%H:%M:%S.%g%z2024-03-04T05:06:07.123+00—
ISO 8601 with Milliseconds
iso_8601_milliseconds · TIMESTAMP
%Y-%m-%dT%H:%M:%S.%gZ2024-03-04T05:06:07.123Z—
ISO 8601 with Timezone Offset
iso_8601_offset · TIMESTAMPTZ
%Y-%m-%dT%H:%M:%S%z2024-03-04T05:06:07+00—
%Y-%m-%dT%H:%M:%S.%f2024-03-04T05:06:07.123456—
%Y-%m-%dT%H:%M:%S.%g2024-03-04T05:06:07.123—
%Y-%m-%dT%H:%M2024-03-04T05:06—
%Y-%m-%dT%H:%M:%S2024-03-04T05:06:07—
ISO with Space Separator and Z
iso_space_zulu · TIMESTAMP
%Y-%m-%d %H:%M:%SZ2024-03-04 05:06:07Z—
MDY 12-Hour Datetime
mdy_12h · TIMESTAMP
%m/%d/%Y %I:%M %p03/04/2024 05:06 AM—
MDY 24-Hour Datetime
mdy_24h · TIMESTAMP
%m/%d/%Y %H:%M:%S03/04/2024 05:06:07—
PostgreSQL Short Offset
pg_short_offset · TIMESTAMPTZ
%Y-%m-%d %H:%M:%S.%f%z2024-03-04 05:06:07.123456+00—
RFC 2822
rfc_2822 · TIMESTAMPTZ
%a, %d %b %Y %H:%M:%S %zMon, 04 Mar 2024 05:06:07 +00—
RFC 2822 with Ordinal Indicators
rfc_2822_ordinal · TIMESTAMPTZ
—15th Jan 2024 10:30:00 +0000sample—
RFC 3339 (Space Separator)
rfc_3339 · TIMESTAMPTZ
%Y-%m-%d %H:%M:%S%z2024-03-04 05:06:07+00—
Slash YMD Timestamp (24h)
slash_ymd_24h · TIMESTAMP
%Y/%m/%d %H:%M:%S2024/03/04 05:06:07—
SQL Timestamp with Microseconds
sql_microseconds · TIMESTAMP
%Y-%m-%d %H:%M:%S.%f2024-03-04 05:06:07.123456—
SQL Timestamp with Milliseconds
sql_milliseconds · TIMESTAMP
%Y-%m-%d %H:%M:%S.%g2024-03-04 05:06:07.123—
SQL Minute-Precision Datetime
sql_minutes · TIMESTAMP
%Y-%m-%d %H:%M2024-03-04 05:06—
SQL Standard
sql_standard · TIMESTAMP
%Y-%m-%d %H:%M:%S2024-03-04 05:06:07—
BSD Syslog (RFC 3164)
syslog_bsd · VARCHAR
%b %-d %H:%M:%SMar 4 05:06:07—

Which timestamp type is it?

1 of 31 timestamp types accepts it.

TypeReads it as
PostgreSQL Short Offset pg_short_offset2024-03-04 05:06:07.123456+00

Use it

CLI · DuckDB
$ printf '%s\n' '2024-03-04 05:06:07.123456+00' '2024-03-25 05:06:07.123456+00' > column.txt
$ finetype infer -f column.txt --mode column

SELECT ft_profile(v) FROM (VALUES ('2024-03-04 05:06:07.123456+00'), ('2024-03-25 05:06:07.123456+00')) t(v);

After 2024-03-25 05:06:07.123456+00, one type remains: pg_short_offset.

Type Registry