Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snowflake-so/move-cron-parser
Cron parser library written for Move language
https://github.com/snowflake-so/move-cron-parser
cron cron-parser snowflake
Last synced: 12 days ago
JSON representation
Cron parser library written for Move language
- Host: GitHub
- URL: https://github.com/snowflake-so/move-cron-parser
- Owner: snowflake-so
- License: apache-2.0
- Created: 2022-09-05T08:28:17.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T02:24:02.000Z (about 2 years ago)
- Last Synced: 2024-08-01T02:26:12.389Z (3 months ago)
- Topics: cron, cron-parser, snowflake
- Language: Move
- Homepage:
- Size: 20.5 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-sui - Move cron parser - Library is built for a purpose of parsing cron expression. Maintained by Snowflake Network team. (Code / Libraries)
- awesome-move - Move cron parser - Library is built for a purpose of parsing cron expression. Maintained by Snowflake Network team. (Code / Libraries)
README
# Move language: Cron Parser
A cron parser library for Move language.
**Author:** This library is written by **Snowflake Network**.
## Quick start guide
Add a library to the dependency list in `Move.toml`. Use the library by add the line `use cron::parser`. Now you are ready to parse a cron expression!
### Input
```rust
let schedule = parser::parse_cron(&b"* * * * *");
```### Output
```rust
ScheduleComponents {
minutes: [0..60],
hours: [0..24],
days: [1..31],
months: [1..12],
weekdays: [0..6]
}
```