I think you're right.

What I get out of this is;
* Witango should correctly handle leading zeroes for dates and times
* formatting should be more flexible to allow numbers to formatted instead of translated (perl has some good code for this) * provide a different regex interface supports substitution and backtracking.

Bill

On Jan 31, 2007, at 12:45 PM, Robert Shubert wrote:

I think in this case Witango is failing to identify your variable as a
date/time format and just passing the input back out unformatted.

Robert

-----Original Message-----
From: William M Conlon [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 31, 2007 3:39 PM
To: Witango-Talk
Subject: Witango-Talk: Bug: datetime:%M

The manual reports that datetime:%M outputs results in [00:59]


But this test case shows several bugs:
1.  Single digit numbers are output without leading zeroes --
contradicting the purported formatting
2.  Numbers are not modulo 60 -- numbers 60 and above are output in
full.

Here are a few snips:

1, 1, 1
2, 2, 2
3, 3, 3
4, 4, 4
5, 5, 5
6, 6, 6
7, 7, 7
8, 8, 8
9, 9, 9
10, 10, 10

97, 97, 97
98, 98, 98
99, 99, 99
100, 100, 100
101, 101, 101
102, 102, 102


***** TEST CASE ****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
        <TITLE></TITLE>
</HEAD>
<BODY>
<@FOR START=1 STOP=120>
<@ASSIGN SCOPE="request" NAME="i" VALUE="<@CURROW>">
<@CURROW>, @@i, <@VAR SCOPE="request" NAME="i" FORMAT="datetime:% M"><br>
</@FOR>
</BODY>
</HTML>

Bill

William M. Conlon, P.E., Ph.D.
To the Point
2330 Bryant Street
Palo Alto, CA 94301
    vox:  650.327.2175 (direct)
    fax:  650.329.8335
mobile:  650.906.9929
e-mail:  mailto:[EMAIL PROTECTED]
    web:  http://www.tothept.com

______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to