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

onedionys-timezone-conversion-utilities

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onedionys-timezone-conversion-utilities

One Dionys (Timezone Conversion Utilities) - Functions to convert date and time between different time zones, facilitating global time management in web applications.

latest
Source
npmnpm
Version
5.0.0
Version published
Maintainers
1
Created
Source

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

import { convertToTimezone } from 'timezone-conversion-utilities';

const date = new Date('2024-03-07T12:00:00Z');
const targetTimezone = 'America/New_York';

const convertedDate = convertToTimezone(date, targetTimezone);
console.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

Keywords

onedionys

FAQs

Package last updated on 31 Mar 2024

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