Hi Hilmar,
I use it because it gives more precision than using DATETIME().
>While adding the Julian Date to seconds() should give correct results, I prefer the datetime() solution, for its simplicity.
>
>The Julian Date may be required for FoxPro 2.x, which doesn't have datetime-variables.
>
>Hilmar.
>
>>To avoid this I use:
>>
>>lnTime1 = VAL(SYS(1)) * 86400 + SECONDS()
>>* some process here
>>lnDiff = VAL(SYS(1)) * 86400 + SECONDS() - lnTime1
>>
>>This gives the maximum precision.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison