LISTSERV mailing list manager LISTSERV 16.0

Help for DATETIME Archives


DATETIME Archives

DATETIME Archives


DATETIME@C4VLPLISTSERV01.LOC.GOV


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

DATETIME Home

DATETIME Home

DATETIME  July 2011

DATETIME July 2011

Subject:

Re: duration normalization rules

From:

Saašha Metsärantala <[log in to unmask]>

Reply-To:

Discussion of the Developing Date/Time Standards <[log in to unmask]>

Date:

Tue, 12 Jul 2011 20:01:15 +0200

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (62 lines)

Hello!

> > I consider that the W3C did a good job about these questions when
> > reworking XML Schema 1.0 to XML Schema 1.1 and I suggest to find
> > inspiration from the concept of "two-property tuples" for durations
> > as of XML Schema 1.1.
> for duration normalization rules,
Here, I will try to summarize what is relevant for our purposes. Leap
seconds are NOT taken into account. Durations are assumed to begin and end
within the same time zone offset. I also assume a Gregorian calendar.

Duration is often measured with the SI unit "second" and its multiples.

In our context, we want to be able to express (calendar) years, which may
have different lengths (in seconds).

A (calendar) year has, though, always the same length in months, namely:
12 months. Months (and thus years) have different lenghts (in seconds),
though.

In XML Schema 1.1, this problem is solved throught the "two-property
tuples" for durations. In other words, there are two different units of
measurement for duration: seconds and months, each of which have their
multiples, thus enabling c14n as:

60 seconds = one minute

60 minutes = one hour

24 hours = one day

And for months:

12 months = one year

Seconds and months are only partially ordered: One month is always longer
than 27 days (2332800 seconds) and shorter that 32 days (2764800 seconds).
We can NOT order one month vs 30 days. Partial ordering is described in
detail in
http://www.w3.org/TR/2009/WD-xmlschema11-2-20091203/#vp-du-second but
maybe we do not need to focus on partial ordering.

In other words, duration is two-dimensional. One dimension is expressed in
seconds whereas the other dimension is expressed in months. We can
partially compare these two dimensions, but we can not translate any of
them to the other one.

Every duration could be written with nothing more than seconds and months,
such as:

P123MT1234S which may be rewritten

P10Y3MT20M34S according to the c14n above. But

P3M is NOT expressable in seconds (or its multiple: days).

I hope this mail brings some clarifications.

Regards!

SaaĊĦha,

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

August 2019
February 2019
December 2018
November 2018
October 2018
January 2018
August 2017
July 2017
June 2017
April 2017
March 2017
February 2017
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
December 2014
November 2014
March 2014
September 2013
May 2013
February 2013
October 2012
September 2012
August 2012
May 2012
March 2012
December 2011
November 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
February 2010
January 2010
December 2009
November 2009

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager