alpinweis / cronex

Ruby library that converts cron expressions into human readable strings
Other
77 stars 29 forks source link

Timezone support #10

Closed reedlaw closed 5 years ago

reedlaw commented 5 years ago

Why

Many cron jobs are run on cloud servers with UTC timezone. It's useful to display human-readable schedules in local time.

Example usage

    Cronex::ExpressionDescriptor.new('0-10 11 * * *', timezone: 'America/Los_Angeles').description
    => Every minute between 3:00 AM and 3:10 AM