e-clearing-net / OCHP

Open Clearing House Protocol
http://ochp.eu
MIT License
50 stars 33 forks source link

Type of the duration field in CDRInfo #15

Open ahzf opened 7 years ago

ahzf commented 7 years ago

The CDRInfo https://github.com/e-clearing-net/OCHP/blob/master/OCHP.md#regularhourstype-class defines an optional field called "duration" which is defined as the duration of the charge session and represented as a fixed-length string, e.g. "000:00:28". What is the clear purpose of this field, as there are already fields for startDateTime and endDateTime and why this very uncommon way of representation? Wouldn't an integer counting seconds be a better way?

mtdern commented 7 years ago

This is actually something I have wondered about myself. The field is wanted by quite a few parties, but I personally would always have preferred putting seconds in there as well. I'll take this along for discussion for the next version again.