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:

Proportional Font

LISTSERV Archives

LISTSERV Archives

DATETIME Home

DATETIME Home

DATETIME  February 2011

DATETIME February 2011

Subject:

Re: Requirements // Ordinal and Week dates

From:

"Edward C. Zimmermann" <[log in to unmask]>

Reply-To:

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

Date:

Wed, 23 Feb 2011 10:51:37 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (38 lines)

On Tue, 22 Feb 2011 16:00:15 +0100, [UTF-8?]SaaÅ¡ha Metsärantala wrote
> Hi,
> 
> > the first Tuesday in
> > Novemeber or [...]
> > the 3rd Monday in Feb.

It could also be solved in what I think is an ISO 8601 inspired manner as Dnm
where n is 1-7 (Sun to Sat) and m is 1 to 5 (or -5 to -1).
2011-02-D13 would be read as the 3rd Monday in Feb. 2011
2010-11-D31 would be read as the first Tuesday in Nov. 2010.
The default day would be Sun.
2011-03-D1 would be the first Sunday in March.
Since this syntax encodes day there is no reason to expect a - so to count 
in the other direction we can use -.
2011-03-D1-1 would be the last Sunday in March.
The default for n in Dn I think we should interpret as last (given that it 
is non trivial so
2011-03-D-2 would be the last Monday in March.


> If you are interested in such issues, you could read chapter 4.11 in "XSLT 
> cookbook" second edition (dec 2005) where relevant code is provided. 
> According to the author, Sal Mangano, such dates are "easy to handle" 
> (p. 155). With this book as an inspiration, "last" could be specified with 
> an HYPHEN-MINUS (U+0x2D).
> 
> Regards!
> 
> [UTF-8?]Saašha,


--

Edward C. Zimmermann, NONMONOTONIC LAB
http://www.nonmonotonic.net
Umsatz-St-ID: DE130492967

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