datetime.time.hm_12hHours and minutes with AM/PM, no seconds. Common in US scheduling applications and user interfaces.
$ finetype infer -i "10:30 AM"
→ datetime.time.hm_12hSELECT finetype('10:30 AM');
-- → 'datetime.time.hm_12h'strptime({col}, '%I:%M %p')::TIME
-- Format: %I:%M %p-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS TIME) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.time.hm_12h';{
"$id": "https://meridian.online/schemas/datetime.time.hm_12h",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Hours and minutes with AM/PM, no seconds. Common in US scheduling applications and user interfaces.",
"examples": [
"10: 30 AM",
"11: 59 PM"
],
"maxLength": 8,
"minLength": 8,
"pattern": "^\\d{2}:\\d{2} [AP]M$",
"title": "12-Hour Time (HH:MM AM/PM)",
"type": "string",
"x-finetype-broad-type": "TIME",
"x-finetype-format-string": "%I:%M %p",
"x-finetype-transform": "strptime({col}, '%I:%M %p')::TIME"
}10:30 AM11:59 PM