@@ -10,7 +10,7 @@ A parser that converts natural (English) language to a cron quartz expressions,
10
10
You can add the library to your project using gradle:
11
11
12
12
``` kotlin
13
- implementation(" io.github.yamilmedina:natural-kron:1 .0.0" )
13
+ implementation(" io.github.yamilmedina:natural-kron:2 .0.0" )
14
14
```
15
15
16
16
## Motif ##
@@ -45,7 +45,7 @@ import io.github.yamilmedina.kron.NaturalKronParser
45
45
val input = " every saturday at 10:11"
46
46
val cronExpression = NaturalKronParser ().parse(input)
47
47
48
- assertEquals(" 0 11 10 ? * SAT" , cronExpression)-- - > This is a valid Quartz cron expression
48
+ assertEquals(" 0 11 10 ? * SAT" , cronExpression) // ---> This is a valid Quartz cron expression
49
49
```
50
50
51
51
## Implementation details ##
@@ -65,6 +65,14 @@ This is a starting point for now, so these things are not supported yet (most li
65
65
- ranges of values (e.g. ` every day between 10 and 20 ` -> ` 0 0 0 10-20 * ? ` )
66
66
- last day of the month (e.g. ` every last day of the month ` -> ` 0 0 0 L * ? ` )
67
67
68
+ ## Note ##
69
+
70
+ Up to version 1.0.1, the library was a direct port of [ this library] ( https://github.com/bpolaszek/natural-cron-expression/ )
71
+ from PHP to Kotlin.
72
+ The library was refactored to be more Kotlin idiomatic and to add some features, but rewritten completely from scratch,
73
+ due to lack of test and not scalable code.
74
+ In version 2.0.0, the library was refactored to use ANTLR4 to parse the input.
75
+
68
76
## License ##
69
77
70
78
The MIT license. See LICENSE.
0 commit comments