Meridianmeridian

Slash YMD Timestamp (24h)

datetime.timestamp.slash_ymd_24h

Slash-separated Year/Month/Day with space and 24-hour time. Standard in Japanese system logs and .NET ja-JP culture default.

Domain
datetime
Category
timestamp
Casts to
TIMESTAMP
Scope
Universal

Try it

CLI
$ finetype infer -i "2024/01/15 14:30:00"
→ datetime.timestamp.slash_ymd_24h

DuckDB

Detect
SELECT finetype('2024/01/15 14:30:00');
-- → 'datetime.timestamp.slash_ymd_24h'
Cast expression
strptime({col}, '%Y/%m/%d %H:%M:%S')
-- Format: %Y/%m/%d %H:%M:%S
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS TIMESTAMP) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'datetime.timestamp.slash_ymd_24h';

JSON Schema

finetype schema datetime.timestamp.slash_ymd_24h
{
  "$id": "https://meridian.online/schemas/datetime.timestamp.slash_ymd_24h",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Slash-separated Year/Month/Day with space and 24-hour time. Standard in Japanese system logs and .NET ja-JP culture default.",
  "examples": [
    "2024/01/15 14: 30: 00",
    "2023/12/31 23: 59: 59",
    "2024/06/01 08: 15: 30"
  ],
  "maxLength": 19,
  "minLength": 19,
  "pattern": "^\\d{4}/\\d{2}/\\d{2} \\d{2}:\\d{2}:\\d{2}$",
  "title": "Slash YMD Timestamp (24h)",
  "type": "string",
  "x-finetype-broad-type": "TIMESTAMP",
  "x-finetype-format-string": "%Y/%m/%d %H:%M:%S",
  "x-finetype-transform": "strptime({col}, '%Y/%m/%d %H:%M:%S')"
}

Examples

2024/01/15 14:30:002023/12/31 23:59:592024/06/01 08:15:30

Aliases

jp_timestamp