Solved

calculate seconds since midnight

Posted on 2000-02-17
4
2,159 Views
Last Modified: 2008-03-17
how to calculate calculate seconds since midnight?
0
Comment
Question by:taimur
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Expert Comment

by:roverm
ID: 2533972
Use the Timer object. It returns a Single containing the seconds passed since midnight !!!

'Msgbox Timer'

Good luck !

RoverM
0
 
LVL 3

Accepted Solution

by:
paulstamp earned 10 total points
ID: 2533995
Use DateDiff function, setting the interval as "s"

MsgBox DateDiff("s", "00:00:00", Time)

Cheers.
0
 
LVL 3

Expert Comment

by:paulstamp
ID: 2533997
The above DateDiff is useful as it can be used to find seconds elapsed since any time or date, in intervals from years down to seconds.
0
 

Author Comment

by:taimur
ID: 2534279
Just what I needed.

Thank you paulstamp
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question