Comments (3)
I would argue that it should be changed to be 0-6 or have a configuration to pick between 0-6 or 1-7 as right now if we wanted to use this crate we'd need to fork it and change it to 0-6. Otherwise, the crate looks great!
from cron.
See also: #37. Sunday=1 was taken from the Quartz service.
Maybe this should be documented somewhere.
+1.
I would argue that it should be changed to be 0-6
I can't do this as there are folks using it for parsing Quartz's flavor of cron expressions.
or have a configuration to pick between 0-6 or 1-7
This would be great! There are other settings that would be nice to have, too. Off the top of my head:
- Named ordinal support for other languages (
Mon,Tues,Wed
in English ->Lun,Mar,Mer
in French) - Some locales start the week on Monday, not Sunday.
- 5-field expressions in which the leftmost field is meant to be a year instead of the rightmost being seconds.
I'd like to have a builder API that lets folks opt into these settings. Exposing a day-of-week ordinals option would be a good place to start. If anyone is interested in implementing that, let me know and we can sketch out what the API should look like.
from cron.
Hello, I'd also like to say this is a great crate! :-)
I'm also here because of the weekday numbering scheme; I was expecting a standard unix scheme where 0 and 7 means sunday, while 1 means monday, etc. It would be great if this behavior could be enabled by some option.
from cron.
Related Issues (20)
- ScheduleIterator is a private type in a public API
- Panic on invalid cron expression
- impl `DoubleEndedIterator` for `ScheduleIterator` is incorrect HOT 2
- Is it possible to use as a CLI? HOT 3
- Schedule::after doesn't take milliseconds into account
- Adding examples for using cron with timezone HOT 2
- Iterator returns the same execution period [bug] HOT 1
- Could it be the numerical values for day of week are off by one? HOT 3
- [QA] Is last day of month supported ? HOT 2
- Need documentation for supported cron expressions HOT 1
- fcron-like expressions?
- Upcoming and Resuming Schedules
- Make it ready for v0.9.0 HOT 15
- 0.8.1 release for fixing nightly Rust HOT 2
- Incorrectly parses shorthand with suffix e.g. "@dailyBla" HOT 1
- Bug in time zone change
- Support `@every` to format a schedule at fixed intervals HOT 2
- Upcoming year for past date not used for schedule
- Impl TryFrom<&str> for Schedule
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cron.