Bug in Calendar.f

From: Bret Latshaw <bret_at_bedford.net>
Date: Thu, 20 Apr 2000 13:28:25 -0400

Hi, for the past couple of days I've been trying to change my system date
and nothing was happening. I just upgraded to SwiftForth Pro and found
out why from the source:

: !DATE ( n -- )

Y-DD ( y d d )
DM ( y d m )
SWAP ( y m d )
ROT ( m d y )
(!date) ;

(!date) expects d m y on the stack, so the SWAP shouldn't be there.

The effect of the bug is that if the day is higher than 12, Windows
does not change the date, otherwise day and month are set in each other's
place.

--
Bret Latshaw
.
Received on Thu Apr 20 2000 - 13:28:25 PDT

Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.