Commit Graph

57 Commits

Author SHA1 Message Date
Dominik Csapak
8e0fc66dfe proxmox-time: calendar-events: make hour optional
to be compatible with our perl calendar events, we have to make hour optional
in that case we select every hour, so 'X' is the same as writing '*:X'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:54:32 +01:00
Dominik Csapak
8480b7b4ff proxmox-time: calendar-events: implement repeated ranges
so that we can have e.g. '7..17/2:00' as timespec

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-12-01 06:53:55 +01:00
Wolfgang Bumiller
60fa521095 time: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-11-29 14:56:31 +01:00
Dietmar Maurer
3a378a34bb bump proxmox-time version to 1.1.0 2021-11-17 13:03:36 +01:00
Dietmar Maurer
6871232791 proxmox-time: remove custom error type
None of the functions we call returns a resonable error number anyways.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-17 13:03:36 +01:00
Dietmar Maurer
4a5dbd2129 proxmox-time: added time related fuctions from proxmox-systemd crate.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
2021-11-17 13:03:36 +01:00
Wolfgang Bumiller
9b6fe4aceb add proxmox-time crate
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-10-08 15:22:17 +02:00