[pve-devel] [PATCH 0/2] new PVE::CalendarEvent class

Dietmar Maurer dietmar at proxmox.com
Wed May 17 07:29:34 CEST 2017


Add helper class to parse systemd like calendar events.
Calendar events may be used to refer to one or more points in time
in a single expression, see:

https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events

Date specifications are currently not implemented.

We can use this class to specify replication intervals, backup schedules, ...

Dietmar Maurer (2):
  CalendarEvent.pm: implement parser/utils for systemd like calender
    exents
  test/calendar_event_test.pl: regression tests for PVE::CalendarEvent

 src/Makefile                |   1 +
 src/PVE/CalendarEvent.pm    | 217 ++++++++++++++++++++++++++++++++++++++++++++
 test/Makefile               |   1 +
 test/calendar_event_test.pl | 121 ++++++++++++++++++++++++
 4 files changed, 340 insertions(+)
 create mode 100644 src/PVE/CalendarEvent.pm
 create mode 100755 test/calendar_event_test.pl

-- 
2.11.0




More information about the pve-devel mailing list