jq Filters and Transformations/ISO string to Unix time

Parse an ISO timestamp into epoch seconds.

Section: Dates and Time

ISO string to Unix time

bash
bash
echo '"2025-01-15T12:34:56Z"' | jq 'fromdateiso8601'
Explanation

Ideal for comparing timestamps numerically.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Dates and Time
Current Unix time
Get the current time as Unix epoch seconds.
OpenIn sheetbashsame section
Unix time to ISO string
Format epoch seconds as an ISO-like UTC string.
OpenIn sheetbashsame section
Parse custom date format
Parse a custom-formatted date string.
OpenIn sheetbashsame section
Format epoch as custom string
Render timestamps using a custom format.
OpenIn sheetbashsame section
Logical AND
Filter items that satisfy two conditions.
OpenIn sheetbash1 tag match
Test regex match
Return true if a string matches a pattern.
OpenIn sheetbash1 tag match