Skip to content

Releases: cuu508/cronsim

2.6

02 Nov 14:32
2b67279
Compare
Choose a tag to compare
  • Add support for iteration backwards in time (#2)

2.5

01 Jul 07:46
0bc4031
Compare
Choose a tag to compare
2.5
  • Add support for "LW" in the day-of-month field (#1)

2.4.1

27 Apr 15:50
e45df60
Compare
Choose a tag to compare
  • [explain] Fix month-day formatting ("January 1st" -> "January 1")
  • [explain] Change ordinal formatting to use words instead of numerals for 1-9
  • [explain] Fix digital time formatting (use HH:MM instead H:MM)

2.4

26 Apr 15:13
d4f5a06
Compare
Choose a tag to compare
2.4
  • Add explain() method which describes the expression in human language
  • Remove Python 3.7 support

2.3

28 Sep 14:42
61acc3a
Compare
Choose a tag to compare
2.3
  • Add type hints
  • Remove Python 3.6 support (EOL)

2.2

22 Sep 12:50
c401228
Compare
Choose a tag to compare
2.2
  • Make validation error messages similar to Debian cron error messages

  • Change day-of-month and day-of-week handling to mimic Debian cron more closely

    In Debian cron, if either the day-of-month or the day-of-week field
    starts with a star, then there is an "AND" relationship between them.
    Otherwise it's "OR".

    This commit updates cronsim to follow the same logic.

    Example expression: 1 1 1-7 * */7

    Here, the day-of-month is 1-7, meaning dates from 1 to 7. The
    day-of-the-week field is */7, meaning "every 7th weekday, starting
    from Sunday". So, effectively, "every Sunday". Since the day-of-week
    field starts with a star, there's an AND relationship between
    the day-of-month and the day-of-week fields, and the expression
    translates to "at 01:01 of the first Sunday of every month".

2.1

30 Apr 06:35
88f0472
Compare
Choose a tag to compare
2.1
  • Add support for "L" in the day-of-week field
  • Fix crash when "¹" passed in the input

2.0

15 Nov 20:00
8c1ecd3
Compare
Choose a tag to compare
2.0
  • Rewrite to use zoneinfo (or backports.zoneinfo) instead of pytz
  • Add minimal type hints
  • Make CronSimError importable from the top level

1.0

15 Oct 07:52
5885d72
Compare
Choose a tag to compare
1.0
  • Initial release