Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crontzconvert

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crontzconvert

Convert cron expressions for others timezones

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
703
decreased by-31.35%
Maintainers
1
Weekly downloads
 
Created
Source

crontzconvert

crontzconvert is a JavaScript library that, given a cron expression, a source timezone and a destination timezone, transforms the cron expression for that timezone.

Installation

First, install the module:

npm install crontzconvert

Then, depending upon your usage context, add a reference to it:

Node / CommonJS

const crontzconvert = require('crontzconvert');

ESM / webpack / TypeScript

import crontzconvert from 'crontzconvert';

Usage

crontzconvert.convert("0 0 8-10 * * *", "UTC", "US/Arizona");
> "0 0 1-3 * * *"

crontzconvert.convert("0 30 23 L * *", "UTC", "Africa/Lagos");
> "0 30 0 1 * *"

crontzconvert.convert("0 30 0 1 * *", "Africa/Lagos", "UTC");
> "0 30 23 L * *"

crontzconvert.convert("0 30 23 * * 2,6", "Africa/Lagos", "UTC");
> "0 30 0 * * 0,3"

crontzconvert.convert("0 0 0 1 12 *", "Africa/Lagos", "UTC");
> "0 0 23 L 11 *"

crontzconvert.convert("0 0 0 31 12 *", "UTC", "Africa/Lagos");
> "0 0 0 1 1 *"

crontzconvert.convert("0 0 23 30 11 *", "UTC", "Africa/Lagos");
> "0 0 0 1 12 *"

License

crontzconvert is freely distributable under the terms of the MIT license.

Keywords

FAQs

Package last updated on 13 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc