🕐

Date & Time Cheatsheet

Cron syntax, ISO 8601 formats, Unix timestamp values, timezone offsets.

Cron Syntax

Format: minute hour day-of-month month day-of-week

ExpressionMeaning
* * * * *Every minute
0 * * * *Every hour (at :00)
0 0 * * *Daily at midnight
0 9 * * 1-5Weekdays at 09:00
0 0 * * 1Every Monday at midnight
*/5 * * * *Every 5 minutes
0 0 1 * *First day of every month
0 0 1 1 *January 1st at midnight
30 6 * * 1,3,5Mon/Wed/Fri at 06:30
@hourlyAlias for 0 * * * *
@dailyAlias for 0 0 * * *
@weeklyAlias for 0 0 * * 0
@monthlyAlias for 0 0 1 * *
@yearlyAlias for 0 0 1 1 *

ISO 8601 Date Formats

FormatExampleNotes
Date2026-06-16YYYY-MM-DD
Time14:30:00HH:MM:SS
DateTime (UTC)2026-06-16T14:30:00ZZ = UTC offset
DateTime (offset)2026-06-16T14:30:00+05:30IST example
Week2026-W25Week number
DurationP1Y2M3DT4H5M6S1 year, 2 months, 3 days, 4h 5m 6s
Interval2026-01-01/2026-06-30Date range

Unix Timestamp Reference

ValueMeaning
0Unix epoch: 1970-01-01T00:00:00Z
864001 day in seconds
6048001 week in seconds
259200030 days in seconds
31536000365 days in seconds
1748995200~2026-06-04 (example current)
2147483647Year 2038 (32-bit overflow boundary)

Common Timezone Offsets

TimezoneOffsetRegion
UTC+00:00Universal
EST-05:00US Eastern
EDT-04:00US Eastern (summer)
PST-08:00US Pacific
CET+01:00Central Europe
IST+05:30India
JST+09:00Japan
AEST+10:00Australia Eastern
← All Cheatsheets