Converting hh:mm:ss (time) in secunds
Author Message
Converting hh:mm:ss (time) in secunds

How can I convert in example 1 hour, 1 minutes and 1 seconds (01:01:01) to
be 3661 second?

Thank You

Tue, 16 Dec 2003 15:48:46 GMT
Converting hh:mm:ss (time) in secunds

Type in the time.
To convert the time to your required format, use this code:

--
________
___/\/                \/\___
M. Stevens

Quote:
> How can I convert in example 1 hour, 1 minutes and 1 seconds (01:01:01) to
> be 3661 second?

> Thank You

Tue, 16 Dec 2003 17:35:00 GMT
Converting hh:mm:ss (time) in secunds
The CLOCK() function returns hundredths of a second that have elapsed since
midnight

TimeStart    LONG
TimeEnd     LONG

TimeStart = Clock()

2 minut's later

TimeEnd = Clock()

MESSAGE('Difference : ' & (TimeEnd - TimeStart) / 100)

That should give you the amount of second's betwene Time Start and TimeEnd
in seconds with two digit's, if you dont want the digits, just use
INT((TimeEnd - TimeStart) / 100).

Quote:
> How can I convert in example 1 hour, 1 minutes and 1 seconds (01:01:01) to
> be 3661 second?

> Thank You

Tue, 16 Dec 2003 18:20:46 GMT
Converting hh:mm:ss (time) in secunds

Quote:
> How can I convert in example 1 hour, 1 minutes and 1 seconds (01:01:01) to
> be 3661 second?

the result to an integer (SHORT or LONG).

-- Craig (The Data Ferret)
http://www.pcferret.com/ for RARS, NetClip
http://www.pcferret.com/teletools.html for Telephony
http://www.pcferret.com/gps.html for GPS!
Virtual Access 5.51 build 315 Win98
http://counter.li.org ID #184149
"Do not meddle in the affairs of FERRETS..."

Tue, 16 Dec 2003 15:26:17 GMT
Converting hh:mm:ss (time) in secunds
Hi Craig ,

No, it is in TIME format. I will try Oddmar suggestion.

Quote:

> > How can I convert in example 1 hour, 1 minutes and 1 seconds (01:01:01)
to
> > be 3661 second?

> the result to an integer (SHORT or LONG).

> -- Craig (The Data Ferret)
> http://www.pcferret.com/ for RARS, NetClip
> http://www.pcferret.com/teletools.html for Telephony
> http://www.pcferret.com/gps.html for GPS!
> Virtual Access 5.51 build 315 Win98
> http://counter.li.org ID #184149
> "Do not meddle in the affairs of FERRETS..."

Wed, 17 Dec 2003 14:13:34 GMT

 Page 1 of 1 [ 5 post ]

Relevant Pages