Re: date:parse-date() result mismatched format and date/time?

Uche Ogbuji <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Organization Fourthought, Inc.
Message-ID <1130992972.24249.45.camel@borgia>
On Wed, 2005-10-05 at 14:40 -0600, Kevin Rodgers wrote:
> >From http://exslt.org/date/functions/parse-date/index.html:
> 
> 	The first argument to date:parse-date is a string that gives a
> 	date/time in a particular format.
> 
> 	The second argument is a string that gives the format pattern
> 	that has been used to format the date/time given as the first
> 	argument. The format pattern must be in the syntax specified by
> 	the JDK 1.1 SimpleDateFormat class.
> 
> But what should date:parse-date() return if the format given does not
> actually match the date/time -- the empty string?

It would be an error.  Reporting or handling such an error is
application defined.  


-- 
Uche Ogbuji                               Fourthought, Inc.
http://uche.ogbuji.net                    http://fourthought.com
http://copia.ogbuji.net                   http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.