on 4/21/03 11:41 AM, Ken Shmidheiser at kshmidheiser@... wrote: > Barrie asked: > > I found this on http://www.pixmix.com/FB/HowTo/MATH/MATH039.html > The first line does not make sense. How can I fix it? > Thanks > Barrie > > '------------------------------------- > DIM theTime _DateTimeRec > ' the 7 fields are all integers > ' year, month, day, hour, minute,second, dayOfWeek > '------------------------------------- > Try this: > > > dim as DateTimeRec theTime > dim as long TimeInSeconds > dim as OSErr err > > err = FN ReaDDateTime( TimeInSeconds ) > Secs2Date( TimeInSeconds, @theTime ) > > print theTime.year, theTime.month, theTime.day > print theTime.hour, theTime.minute, theTime.second > print theTime.dayOfWeek > > > One caveat when using PixMix examples is that many were constructed > in FBII and need to be converted to FB^3. > Ken Thanks for your help and reminder that some of the PixMix examples are pre FB^3. I still think the site is a great resource. Barrie