
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
timezone-handler
Advanced tools
This Package designed to handle the DST(Day Light Savings).
There is many functions that can help us to handle DST(Day Light Savings) in our code.
1- adjust_dst(zonename, date):- This Function used to convert the date with DST(Day Light Savings) like- 2023-04-22 04:30:00 is the DST(Day Light Savings) date and we want to auto handle the date accourding to normal date.
2- is_dst(zonename, date):- This Function is used to check the given date is DST or NOT if DST retun True Else False.
3- timezone_appender(zonename, date):- This Function is used to append the timezone in the date like 2023-04-22 04:30:00 IST.
4- timezone_appender_with_time_format(zonename, date):- This Function is used to append the timezone in the date with beautify date like April 05 2023 at 04:30 IST.
5- timezone_appender_with_time_format(zonename, date):- This Function is used to append the timezone in the date with beautify date like April 05 2023 at 04:30 IST.
6- adjust_zoneoffset(zonename, date):- This Function used to get the zone offset like -5:30 for UTC
7- adjust_zoneoffset_dst(zonename, date):- This Function used to get the zone offset like -5:00 for UTC with DST handled like in DST is will return -4:00 so this function convert -4:00 to -5:00 if the time period in DST.
values format for the function is-
zonename example- 'America/New_York' date example- any date like '2023-04-22 04:30:00' this format
FAQs
This Package designed to handle the DST(Day Light Savings)
We found that timezone-handler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.