nick-knowles / NeTEx-XML

Netex XML Schema
Other
10 stars 6 forks source link

Version/StartDate Version/EndDate as xs:dateTime. Why? #3

Closed skinkie closed 8 years ago

skinkie commented 8 years ago

What is the design reason for Version/StartDate Version/EndDate being xs:dateTime?

<StartDate>2013-01-01T00:00:00Z</StartDate>
<EndDate>2013-03-31T00:00:00Z</EndDate>

https://github.com/nick-knowles/NeTEx-XML/blob/master/schema/1.03/xsd/netex_framework/netex_responsibility/netex_version_version-v1.0.xsd#L149

While other parts of the standard have defined StartDate/EndDate and FromDate/ToDate as xs:date.

https://github.com/nick-knowles/NeTEx-XML/blob/master/schema/1.03/xsd/netex_framework/netex_reusableComponents/netex_serviceCalendar_version-v1.0.xsd#L188

The latter is something I would like to see uniformly applied.

nick-knowles commented 8 years ago

It is xsd:dateTime as it is a timestamp - a version may start or stop at a point within a day so this is the correct data type. Agree it wouldl have been more correct to call it StartDateTime/ EndDateTime but was kept consistent with Transmodel (it is one of the few attributes specified in the original conceptual model)

Other correctly named uses of date are semantically just dates