[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFC: date parser strawman

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-12-21 15:40:43 CET

mark benedetto king wrote:

>On Sun, Dec 21, 2003 at 07:28:59AM +0100, Branko ??ibej wrote:
>
>
>>>+ if (template_match (value, /* try ISO-8601 extended */
>>>+ "YYYY-MM-DD?Thh?:mm?:ss?.s?s?s?s?s?s?Z?+HH?:MM",
>>>+ "AAAA AA AA? AA? AA? AA? M?M?M?M?M?M?S SAA AA",
>>>+ "0000 11 22Z 33Z 44Z 55Z 6Z6Z6Z6Z6Z6Z7 788 99",
>>>+ results, RESULT_COUNT)
>>>
>>>
>>>
>>>
>>Won't this match "yyyy-mm-dd hh:mm:ssZ+hh:mm"? If I understand the
>>template logic correctly, you're allowed to use both the magic "Z" UTC
>>indicator and an explicit offset at the same time.
>>
>>
>
>Yes. The sad thing is that I did it intentionally after misreading my
>own proposal based on the ISO 8601:2000 document. Will fix, but at
>first glance this will require a change to the matcher, not just the
>template.
>
>
I think using two different match templates, one with "Z?" and one with
"+HH?:MM" would do the trick, wouldn't it? No need to complicate the
matcher.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 21 15:43:29 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.