Home » railML newsgroups » railml.timetable » scheduleformat / periodformat
scheduleformat / periodformat [message #561] Wed, 15 October 2003 10:26 Go to next message
Joachim.Rubröder is currently offline  Joachim.Rubröder
Messages: 33
Registered: September 2004
Member
Hello,
I had a short discussion with Joachim Buechse (ERGON) about RailML and
we agree, that it is not a good style for RailML to invent new time
formats. There is a common standard (ISO8601) for times and durations,
so why not using it.

A "time" has the flexible format "08:13", "08:13:18", "08:13:18.5678" or
even "08:13:18.0+01:00", but not "08:13,3". It's also forbidden to use
"HH:MM:SS" as empty field.

A "duration" of 2 minutes is given as "PT2M" or "PT120S" or "PT1M60S",
always "PT", continued by the time duration in hours, minutes or seconds.

If everyone agrees, I would like to delete the elements <periodformat>
and <scheduleformat> and change the type from "xsd:string" to "xsd:time"
for all time fields and to "xsd:duration" for all fields containing a
time period.

Greetings from Zurich,
Joachim Rubröder (SMA)
Re: scheduleformat / periodformat [message #562 is a reply to message #561] Wed, 15 October 2003 16:52 Go to previous message
thomas.kauer is currently offline  thomas.kauer
Messages: 15
Registered: January 2004
Junior Member
Hello,

I agree with Joachim Rubröder. If possible we should use an existing
standard format for times and durations and with the standard mentioned
below it should be possible to to cover all our needs.

Greetings from Bern
Thomas Kauer



Joachim Rubröder wrote:

> Hello,
> I had a short discussion with Joachim Buechse (ERGON) about RailML and
> we agree, that it is not a good style for RailML to invent new time
> formats. There is a common standard (ISO8601) for times and durations,
> so why not using it.

> A "time" has the flexible format "08:13", "08:13:18", "08:13:18.5678" or
> even "08:13:18.0+01:00", but not "08:13,3". It's also forbidden to use
> "HH:MM:SS" as empty field.

> A "duration" of 2 minutes is given as "PT2M" or "PT120S" or "PT1M60S",
> always "PT", continued by the time duration in hours, minutes or seconds.

> If everyone agrees, I would like to delete the elements <periodformat>
> and <scheduleformat> and change the type from "xsd:string" to "xsd:time"
> for all time fields and to "xsd:duration" for all fields containing a
> time period.

> Greetings from Zurich,
> Joachim Rubröder (SMA)
Previous Topic: timetable-Schema 0.96 ?
Next Topic: Daylight saving time
Goto Forum:
  


Current Time: Fri Apr 19 23:56:39 CEST 2024