[futurebasic] Re: [FB] 4-digit dates

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: Al Boyd <aboyd@...>
Date: Sun, 13 Jun 99 02:28:32 -0500
>I want to store dates with  four-digit years. DATE$ produces two-digit years
>only.
>IM describes a procedure GetDateTime(VAR secs: LONGINT) but I can’t
>figure how to access it from FB. If I could get the seconds from the
>beginning of Mac time I could use FN sec@Date, but there probably is an
>easier
>way to go.
>Any help is appreciated.

In my hurricane tracking program dates are entered/stored like so... 13JUN1999. When in the date's EF I added the ability for the user to hit either plus or minus keys to add or subtract a day. I use FN DATE2SECS(@dRec) to do the needed calculations for switching days. Don't know if it will help or not, but I'll send you the code done during development of the switch days "feature". If anyone else wants it just let me know.

Al Boyd

=======================================================
McHurricane: Macintosh Storm Tracking Software

http://members.aol.com/stormeye
email: aboyd@...
=======================================================