Matthijs Mekking
|
d8dae61832
|
Add isccfg duration utility functions
Add function isccfg_duration_toseconds and isccfg_parse_duration to get
rid of code duplication.
|
2022-06-28 11:56:31 +02:00 |
|
Matthijs Mekking
|
8e18fa5874
|
Fix a bug in the duration_fromtext function
The function actually did not enforce that the duration string starts
with a P (or p), just that there is a P (or p) in the string.
|
2022-06-28 11:56:31 +02:00 |
|
Matthijs Mekking
|
a28d919503
|
Move duration structure to libisccfg/duration
Having the duration structure and parsing code here, it becomes
more accessible to be used in other places.
|
2022-06-28 11:56:31 +02:00 |
|