MeridianMERIDIAN

time

A time of day with no date: hours and minutes, or hours, minutes and seconds, on a twelve-hour clock with AM or PM or on a twenty-four-hour clock, down to microseconds.

5 time types: 5 with a format string, none a sibling also accepts.

5 types

The 5 time types

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

TypeFormatWrites it asAlso accepted by
%I:%M %p05:06 AM—
24-Hour Time (HH:MM)
hm_24h · TIME
%H:%M05:06—
%I:%M:%S %p05:06:07 AM—
%H:%M:%S05:06:07—
%H:%M:%S.%f05:06:07.123456—

Which time type is it?

1 of 5 time types accepts it.

TypeReads it as
12-Hour Time (HH:MM AM/PM) hm_12h05:06:00

Use it

Shell
printf '%s\n' '05:06 AM' '05:06 AM' > column.txt
finetype infer -f column.txt --mode column
DuckDB
SELECT ft_profile(v) FROM (VALUES ('05:06 AM'), ('05:06 AM')) t(v);

After 05:06 AM, one type remains: hm_12h.

Type Registry