Convert Timevalue into Seconds

V

vqthomf

I am taking a time value from a listview column and I am trying to convert it
into seconds, I have tried timevalue to give me the time and then /60 but
this is not working can someone point me in the right direction please.
Thanks
 
K

Karl E. Peterson

vqthomf said:
I am taking a time value from a listview column and I am trying to convert it
into seconds, I have tried timevalue to give me the time and then /60 but
this is not working can someone point me in the right direction please.

Okay, well, first off, that just doesn't make sense. Into seconds? Seconds of
what, or since when?

Are you talking about using the TimeValue() function? For example, this is from my
Immediate window:

?timevalue(now)
11:18:06 AM

In COM, date/time values are stored as double-precision numbers, with the date in
the whole portion and the time in the fractional portion. The time corresponds to a
fraction of a day. So, if you want to know, say, the number of seconds since
midnight, you need to *multiply* the timevalue by the number of seconds in a day.
Make sense?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top