Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DavyCode/timelify

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timelify

NPM Version NPM Downloads Node.js Version

Get the current time in any timezone.

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install timelify

API

var timelify = require("timelify");

timelify.getCurrentTime()

Get the current time in any timezone

Example

var timelify = require("timelify");

timelify.getCurrentTime();

// [
//   {
//     timezone: 'America/New_York',
//     currentTime: 'Monday, January 2, 2023 8:13 AM'
//   },
//   {
//     timezone: 'Asia/Tokyo',
//     currentTime: 'Monday, January 2, 2023 10:13 PM'
//   },
//   {
//     timezone: 'Europe/Paris',
//     currentTime: 'Monday, January 2, 2023 2:13 PM'
//   },
//   {
//     timezone: 'Australia/Sydney',
//     currentTime: 'Tuesday, January 3, 2023 12:13 AM'
//   },
//   {
//     timezone: 'Africa/Johannesburg',
//     currentTime: 'Monday, January 2, 2023 3:13 PM'
//   }
// ]

License

MIT

About

NPM package that generate current time in any timezone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.