Re: Count Time hours, minutes, seconds
- From: "Neil Waterworth" <spammonkey at microsocks.com>
- Date: Wed, 15 Nov 2006 02:28:24 -0000
I code for a call center, but no way would I work on one. They want abandon
rates broken down to favourite biscuit and colour of underwear. If you get
moved onto Pod 5, the "Pod of Death", you're in serious trouble.
Anyway, you can use the DATETIME() function.
lnStart = DATETIME()
** do stuff
lnPeriod = DATETIME() - lnStart
lnPeriod gives the interval between current time and start time in seconds.
3600 secs in an hour, 60 secs in a min, and the INT() function and %
operator will help you roll your own function. Probably a much newer and
better way to do this, but think of the value of the mental excercise.
Might be better to store this value as seconds for your purposes anyway.
Cheers,
Neil
"TonySper" <tsperduti@xxxxxxxxxxxxxxxxxxx> wrote in message
news:Rfu6h.29458$lY5.10095@xxxxxxxxxxxxxxxxxxxxxxxxx
I would like to build up a counter that had a hour, minute, and second
display. Something like a command to start the timer and then a
command to stop the time then keep adding this time to a total time
and have a display that showed the time in live time while a user
types into a memo field. The idea is to add the time that a user types
into the memo field in order to keep track of how long they are
actually working. The start and stop is in case they have to answer
the phone while they are typing so as to not count this time until he
gets off the phone and starts working again. Is there anything out
there that I could copy.
TonySper
.
- Follow-Ups:
- Re: Count Time hours, minutes, seconds
- From: TonySper
- Re: Count Time hours, minutes, seconds
- References:
- Count Time hours, minutes, seconds
- From: TonySper
- Count Time hours, minutes, seconds
- Prev by Date: Count Time hours, minutes, seconds
- Next by Date: vfp and ms-sql
- Previous by thread: Count Time hours, minutes, seconds
- Next by thread: Re: Count Time hours, minutes, seconds
- Index(es):
Relevant Pages
|