cronk

command module
v0.0.0-...-f4af75a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 7 Imported by: 0

README

Cronk

See the future schedule for a given cron time

✨ Install

sh -c "$(curl -fsSL https://raw.githubusercontent.com/arivictor/cronk/main/install.sh)"

Install the latest version of Go first.

👨‍💻 Usage

screenshot

Give cronk a valid cron time format:

cronk "0 */1 * * MON-FRI"

Cronk will give you back the next 10 (default) scheduled times for the cron relative to the system time (default).

You can also view the scheduled times in another timezone:

cronk "0 */1 * * MON-FRI" --timezone=Australia/Melbourne

Australia/Melbourne time is now: 2023-07-20 22:23:03.991963 +1000 AEST

The next 10 scheduled times for 0 */1 * * MON-FRI are:

1.       2023-07-20 23:00:00 +1000 AEST
2.       2023-07-21 00:00:00 +1000 AEST
3.       2023-07-21 01:00:00 +1000 AEST
...

Note: A cron schedule will obviously only trigger based on the local system time.

You can also increase or reduce the list size:

cronk "0 */1 * * MON-FRI" --limit=50

🚀 Help

For help and examples run:

cronk help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL