DEV Community

Qasim Muhammad
Qasim Muhammad

Posted on

Show DST transition dates for a timezone, including the next spring-forward and fall-back dates — nylas timezone dst Guide

Timezone operations that work offline, with zero API calls. nylas timezone dst runs entirely on your machine.

The nylas timezone dst command displays Daylight Saving Time transition dates for any IANA timezone. It shows the next spring-forward and fall-back timestamps, the UTC offset before and after each transition, and how many minutes shift.

Quick Start

brew install nylas/nylas-cli/nylas
nylas init
nylas timezone dst
Enter fullscreen mode Exit fullscreen mode

Syntax

nylas timezone dst --zone TIMEZONE
Enter fullscreen mode Exit fullscreen mode

Examples

Check US Eastern DST transitions:

nylas timezone dst --zone America/New_York
Enter fullscreen mode Exit fullscreen mode

Check EU DST transitions:

nylas timezone dst --zone Europe/London
Enter fullscreen mode Exit fullscreen mode

JSON output for scripting:

nylas timezone dst --zone Asia/Tokyo --json
Enter fullscreen mode Exit fullscreen mode

How It Works

These timezone commands use the IANA timezone database compiled into the binary. No network calls, no API keys, no rate limits. They work on airplanes.

Common Issues

Unknown timezone error
Use full IANA timezone names (America/New_York, not EST). Run nylas timezone list to see all valid identifiers.

No DST transitions shown
Some timezones don't observe DST (e.g., Asia/Tokyo, America/Phoenix). The command correctly reports no transitions for these zones.


Full docs: nylas timezone dst reference — all flags, advanced examples, and troubleshooting.

All commands: Nylas CLI Command Reference

Get started: brew install nylas/nylas-cli/nylasother install methods

Top comments (0)