Time bugs often come from mixing a stored instant with a local display or a schedule. Unix timestamps count from an epoch, but an API may send seconds while JavaScript code expects milliseconds. Cron expressions describe recurring wall-clock times, and their behavior depends on the scheduler’s field count and time zone. Use the timestamp converter to inspect one instant; use the cron tool to build a schedule, then verify it against the scheduler you will deploy.
A date displayed in India can be a different calendar day in UTC without either representation being wrong. Likewise, a job scheduled for 02:30 local time may be skipped or repeated around daylight-saving transitions. Neither a timestamp nor a cron string carries every policy needed for production scheduling. Keep the time zone, scheduler implementation, and expected next runs alongside the expression in your deployment notes.
Choose the right tool
- Unix Timestamp: Check whether an API value is in seconds or milliseconds and compare UTC with local display.
- Cron Generator: Build a recurring expression and inspect its human-readable interpretation.
- HTTP Status Codes: Look up retry-related status codes when scheduling a client around API rate limits.
A practical workflow
For a daily import job, convert the last-run timestamp and record the UTC instant before debugging its local display. Draft the desired schedule in Cron Generator, including the intended hour and weekday. Compare that expression with your deployment platform’s cron documentation, particularly if it accepts seconds or uses UTC by default. Finally, test the next few runs around a time-zone change rather than assuming a human-readable description captures daylight-saving behavior.
Things to check
- Ten-digit and thirteen-digit values commonly represent seconds and milliseconds respectively. Multiplying the wrong one can move the date by millennia. See Unix Timestamp.
- Cron implementations differ on five versus six fields and on day-of-month combined with day-of-week. Match your deployment scheduler. See Cron Generator.
- A local clock time may not occur exactly once on a daylight-saving transition. Define the zone and missed-run policy separately. See Cron Generator.