[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT Date (was: Re: keys and idrefs - XSLT2 request?)

Subject: XSLT Date (was: Re: keys and idrefs - XSLT2 request?)
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Tue, 16 Oct 2001 19:09:12 +0200
xslt date
"cutlass" <cutlass@xxxxxxxxxxx> wrote:
> and the incomplete list is ;
...
> Dates

This is often mentioned, but what does it mean?
Some random thoughts:
- Having a datetype available for sorting
- Localized formats: Reformat a date into a localized
  representation (without actually changing the calendar).
- Localized parsing: Recognize a localized form of a date as
  such and unambiguously determine which date it is for
  further use in expressions. (i think this is dangerous and
  should *not* be implemented)
- Date comparision
- Date arithmetic: increment a date by N days or months, 
  get the number of days between two dates and so on
- Date functions: get the weekday, day of year, week of
  year, check whether a date is in a leap year and so on
  (ISO definitions)
- Easy validated date construction (day/month/year).
- Non-standard date construction: construct a date from
  year + week-of-year + weekday and so on.
- Validating: Check whether a tentatively constructed date
  would be a valid date, or correct for various failure modes
  (e.g. roll over). Check for valid month, day-in-month and
  so on.
- Localized date functions: use localized definitions for week
  of year and so on instead of ISO definitions.
- Calendars: convert a date into a representation used by a
  non-gregorian calendar.
- Calendar dependent date construction and validating functions.
- Calendar dependent localized date parsing.
- Historical localized calendars: deal with the various
  calendar reforms (geeks only :-)
- Built-in localized month and weekday names and abbreviations
  (gregorian calendar)
- Built-in localized calendar dependent names and abbreviations
  for other calendars.
- Functions related to certain holidays, like easter. (I was
  about to add a smiley, but PHP has it).

Furthermore, should the time of the day be incorporated?
If so, you'll have suddenly to deal with time zones, DST,
leap seconds, accuracy issues and a host of other problems
i don't dare to mention.

Look at the calendar FAQ and shudder. Look at the EMACS
calendar module and shudder even more.

Regards
J.Pietschmann

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.