Total seconds of day

  • Thread starter Thread starter Marty
  • Start date Start date
M

Marty

Hi

How can I get the total seconds in the current day?

I thaught that this was helping (DateTime.Now.Second), but it return
only the nb of sec in the current minute.

Regards
Marty
 
Marty,

Here is one way that might work for you:

Dim dt As DateTime = Now

MsgBox(dt.TimeOfDay.TotalSeconds)

Kerry Moorman
 
Great,
thank you,
Marty

Kerry said:
Marty,

Here is one way that might work for you:

Dim dt As DateTime = Now

MsgBox(dt.TimeOfDay.TotalSeconds)

Kerry Moorman


:
 
Herfried,

Kerry already answered the question the same as you, but you used double
instead. Still the same solution though

You should really read the previous post before answering because I have
seen you have answered using the same code in many posts in this newsgroup
previously.

Crouchie1998
BA (HONS) MCP MCSE
 
Be fair, Crouchie1998.

What about having a go at Marina for responding, half an hour later, to the
'Imposing a delay in code execution' thread with the (to all intents and
purposes) same answer as Herfried did.

I think it is rather obvious that depending on what 'feed' a given person is
using, some see 'new posts' sooner or later than others, and not all 'new
posts' are available to a person at the time they write a response.

Remember, that there are a lot of factors that dictate how 'instantaneous'
the feed to and from any given NNTP server or newsgroup is.
 
Crouchie1998 said:
You should really read the previous post before answering because I
have seen you have answered using the same code in many posts in this
newsgroup previously.

Yeah Herfried, stop being so darned helpful! ;-)

(I personally appreciate all of your posts, so please don't stop posting
them).
 
When it comes to questions, there are lots. When it comes to Questions,
there are very few. Thanks Herfried for all your answers and DON't STOP as
you are an extremely valuable asset to this news group.
 

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

Back
Top