[futurebasic] constants in date records

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2004 : Group Archive : Group : All Groups

From: ronald b. kopelman <ronald.kopelman@...>
Date: Thu, 29 Jan 2004 21:54:56 -0500
	If this has been covered previously, please forgive. I haven't seen 
it. It would seem, if I look at the fb^3 headers, that certain 
constants (_day, _month, etc.) are defined as part of the dateTimeRec. 
Oddly, they are defined as part of the longDateRec as well. Looking for 
the definitions of these constants at the apple web site shows that the 
2 structures defined in fb^3 follow the Apple definitions. It seems 
that both of these records, as defined, cannot exist simultaneously 
without one of them getting screwed up. I think it is the longDateRec. 
Am I missing something here? How can both of these structures actually 
be used as defined? Can anyone shed some light on this? For those 
interested, here are the definitions:

begin record DateTimeRec
dim year      as short
dim month     as short
dim day       as short
dim hour      as short
dim minute    as short
dim second    as short
dim dayOfWeek as short
end record


begin record LongDateRec
dim era        as short
dim year       as short
dim month      as short
dim day        as short
dim hour       as short
dim minute     as short
dim second     as short
dim dayOfWeek  as short
dim dayOfYear  as short
dim weekOfYear as short
dim pm         as short
dim res1       as short
dim res2       as short
dim res3       as short
end record