>Does FoxPro have a function that converts seconds
>to hour:minute:second?
>
>I am trying to calculate the time FoxPro takes to
>perform an action. I tried doing it this way:
>
> starttime=seconds()
>
> * carry out the action
>
> timetaken=seconds() - starttime
>
>Should I write a function to convert 'timetaken' to
>hours/minutes/seconds?
>
>Ria
Ria,
you may want to consider this
starttime = DateTime()
timetaken=DateTime() - starttime
x = ttoc( { 00:00 } + timetaken, 1)
x = substr(x,9,2) + ':' + substr(x,11,2) + ':' + right(x,2)
? x
Gregory