{"id":20819872,"url":"https://github.com/brandon93s/is-dst","last_synced_at":"2025-07-04T23:36:50.246Z","repository":{"id":48000203,"uuid":"99515534","full_name":"brandon93s/is-dst","owner":"brandon93s","description":"Is it Daylight Saving Time?","archived":false,"fork":false,"pushed_at":"2022-12-06T22:50:38.000Z","size":133,"stargazers_count":10,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T18:27:58.610Z","etag":null,"topics":["daylight-savings","dst","time"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brandon93s.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-06T21:58:01.000Z","updated_at":"2023-07-29T20:14:49.000Z","dependencies_parsed_at":"2023-01-23T13:40:25.267Z","dependency_job_id":null,"html_url":"https://github.com/brandon93s/is-dst","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/brandon93s/is-dst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandon93s%2Fis-dst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandon93s%2Fis-dst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandon93s%2Fis-dst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandon93s%2Fis-dst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandon93s","download_url":"https://codeload.github.com/brandon93s/is-dst/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandon93s%2Fis-dst/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261330123,"owners_count":23142482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["daylight-savings","dst","time"],"created_at":"2024-11-17T22:07:42.122Z","updated_at":"2025-07-04T23:36:50.190Z","avatar_url":"https://github.com/brandon93s.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-dst [![Build Status](https://travis-ci.org/brandon93s/is-dst.svg?branch=master)](https://travis-ci.org/brandon93s/is-dst)\n\n\u003e Checks if local clocks are currently adjusted for [daylight saving time](https://en.wikipedia.org/wiki/Daylight_saving_time \"Daylight Saving Time\").  :sunny:\n\n\n## Install\n\nInstall with yarn:\n```shell\n$ yarn add is-dst\n```\nOr with npm:\n```shell\n$ npm install --save is-dst\n```\n\n## Usage\n\n```js\nconst isDST = require('is-dst')\n\n/*\n * Examples invoked on February 5th, 2017 in US/Eastern timezone\n */\n\nisDST(new Date('January 1, 2017'))\n//=\u003e false\n\nisDST(new Date('July 1, 2017'))\n//=\u003e true\n\nisDST()\n//=\u003e false\n```\n\n## API\n\n### isDST([,date])\n\n#### date\n\nType: `Date`\u003cbr\u003e\nDefault: `new Date()`\n\nThe date to check for DST.\n\n\n## Assumptions\n\n- Returns false for time zones that do not observe DST.\n\n- Assumes that January 1st and July 1st will never both be DST or not DST in a given year. This is currently true for all time zones that observe DST.\n\n## License\n\nMIT © [Brandon Smith](https://github.com/brandon93s)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandon93s%2Fis-dst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandon93s%2Fis-dst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandon93s%2Fis-dst/lists"}