set-timezone

1.1.0 • Public • Published

set-timezone

Set the timezone for the default Date object

Usage

console.log(new Date().toString()); // Default system timezone

// Set timezone
require('set-timezone')('America/New_York')

console.log(new Date().toString()); // Replaced timezone (New York/ET)

/set-timezone/

    Package Sidebar

    Install

    npm i set-timezone

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • cfal