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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)