Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cron Pattern guide with syntax breakdown and examples #1145

Open
dhruv-dabhi-st7 opened this issue Nov 15, 2024 · 0 comments
Open

Add Cron Pattern guide with syntax breakdown and examples #1145

dhruv-dabhi-st7 opened this issue Nov 15, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@dhruv-dabhi-st7
Copy link

  • Purpose To improve developer understanding of cron expressions in Deno by providing detailed documentation about each asterisk position and common patterns.

  • The current documentation shows basic cron usage but lacks detailed explanation of the cron syntax pattern * * * * * and what each position represents.

Suggested Improvements

  1. Add a clear breakdown of the cron syntax:
// Cron syntax: * * * * *
//              │ │ │ │ │
//              │ │ │ │ └── Day of week (0-6 or SUN-SAT)
//              │ │ │ └──── Month (1-12)
//              │ │ └────── Day of month (1-31)
//              │ └──────── Hour (0-23)
//              └────────── Minute (0-59)

Benefits

  • Reduces confusion for developers new to cron syntax
  • Provides quick reference for common scheduling patterns
  • Improves developer productivity with clear examples

Additional Context

This enhancement aligns with Deno's goal of providing clear, comprehensive documentation for its features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants