[railML2+3] Problems with 24:00:00 for midnight at end of day [message #3536] |
Tue, 01 April 2025 20:58  |
Thomas Nygreen
Messages: 89 Registered: March 2008
|
Member |
|
|
Dear all!
It has come to our attention that the default System.Xml library in MS .NET does not handle the time value/component "24:00:00" for midnight at the end of the day. This is a legal value for xs:time and legal part of xs:dateTime values according to the XML definition. For xs:time "24:00:00" is identical to "00:00:00", and for xs:dateTime "24:00:00" of one day is identical to "00:00:00" of the next day.
Except for IS:uptime, the use of "00:00:00" or "24:00:00" is not mentioned in the railML documentation or wiki. We have since 2021 recommended to use "24:00:00" for the @until attribute of IS:uptime, when referring to midnight at the end of the day. As a commonly used library is unable to parse the value "24:00:00" we will no longer recommend using it for IS:uptime, but this issue also extends to all railML attributes of type xs:time and xs:dateTime.
I am writing here in the timetable forum because xs:time is most heavily used in the timetable subschema, and any input from the timetable community is valuable in determining the way forward.
So the questions to the community are:
1. Are you using "24:00:00" in your interfaces?
2. Should we syntactically disallow the use of "24:00:00" from railML 3.4 onwards?
Best regards,
Thomas Nygreen
Thomas Nygreen – Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
[Updated on: Thu, 10 April 2025 17:08] Report message to a moderator
|
|
|