Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

timezone-dst-info

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timezone-dst-info

Get current datetime, DST status, and UTC offset for a given timezone.

latest
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

timezone-dst-info

Get current date & time, DST (Daylight Saving Time) status, and UTC offset for any IANA timezone.

NPM Version License

✨ Features

  • Returns ISO-formatted datetime for any timezone
  • Detects if DST (Daylight Saving Time) is active
  • Returns the UTC offset abbreviation (e.g., PST, PDT, IST)
  • Works as a CLI tool or programmatically in Node.js

📦 Installation

npm install timezone-dst-info

const { getTimezoneInfo } = require("timezone-dst-info");

const info = getTimezoneInfo("America/New_York");

console.log(info);
// Example output:
// {
//   dateTime: '2025-05-24T14:00:00.000-04:00',
//   isDST: true,
//   offsetUTC: 'EDT'
// }

Keywords

MK

FAQs

Package last updated on 24 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts