Functions to convert date and time between different time zones, facilitating global time management in web applications.
Installations
npm install onedionys-timezone-conversion-utilities
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
20.11.1
NPM Version
10.5.0
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
onedionys
Download Statistics
Total Downloads
5,233
Last Day
1
Last Week
4
Last Month
19
Last Year
5,233
GitHub Statistics
1 Stars
10 Commits
1 Watching
1 Branches
1 Contributors
Package Meta Information
Latest Version
5.0.0
Package Id
onedionys-timezone-conversion-utilities@5.0.0
Unpacked Size
12.17 kB
Size
4.08 kB
File Count
8
NPM Version
10.5.0
Node Version
20.11.1
Publised On
31 Mar 2024
Total Downloads
Cumulative downloads
Total Downloads
5,233
Last day
0%
1
Compared to previous day
Last week
-33.3%
4
Compared to previous week
Last month
-38.7%
19
Compared to previous month
Last year
0%
5,233
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
133
Dev Dependencies
4
Welcome to One Dionys - Timezone Conversion Utilities! 👋
Functions to convert date and time between different time zones, facilitating global time management in web applications. 💖
💾 Requirements
Web Browser
- Can be used as an emulator to build applications. Example [Chrome, Firefox, Safari & Opera].Internet
- Because many use CDN and to make it easier to find solutions to all problems.
🎯 How To Use
Example Syntax
1import { convertToTimezone } from 'timezone-conversion-utilities'; 2 3const date = new Date('2024-03-07T12:00:00Z'); 4const targetTimezone = 'America/New_York'; 5 6const convertedDate = convertToTimezone(date, targetTimezone); 7console.log(convertedDate.toLocaleString());
Explanation
- This package provides a simple utility function convertToTimezone that accepts a JavaScript Date object and a target timezone string (in IANA timezone format) as parameters. It returns a new Date object representing the same moment in time but in the specified timezone.
Return Value
- The function convertToTimezone returns a new Date object representing the same moment in time but in the specified timezone.
📆 Release Date
- v1.0.0 : 17 March 2024
- v1.0.1 : 18 March 2024
- v5.0.0 : 31 March 2024
🧑 Author
- Facebook : Oned Ionys
- Instagram : @onedionys
- Twitter : @onedionys
- LinkedIn : @onedionys
📝 License
- Copyright © 2024 One Dionys
- One Dionys - Timezone Conversion Utilities is an open source project licensed under the MIT license
☕️ Suppport & Donation
Love One Dionys - Timezone Conversion Utilities? Support this project by donating or sharing with others in need.
Made with ❤️ One Dionys
No vulnerabilities found.
No security vulnerabilities found.