https://github.com/mint-dewit/recurrence-parser
https://github.com/mint-dewit/recurrence-parser
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mint-dewit/recurrence-parser
- Owner: mint-dewit
- License: mit
- Created: 2018-04-29T07:31:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-30T15:14:36.000Z (over 1 year ago)
- Last Synced: 2025-02-02T18:17:24.522Z (5 months ago)
- Language: TypeScript
- Size: 779 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Recurrence Parsing
This library takes in schedules in json format with recurrent plannings and converts these into timelines compatible with the supertimeline project.
## Example schedule
```
[
{
"type": "group",
"days": [0,1,2,3,4,5,6],
"weeks": [0, 52, 14],
"dates": [
["2017-1-1", "2017-1-31"],
["2017-12-1", "2017-12-31"]
],
"times": [
"10:00:00",
"22:00:00"
],
"children": [
{
"type": "folder",
"days": [0],
"path": "path"
},
{
"type": "file",
"path": "path"
}
]
}
]
```