Groups | Blog | Home
all groups > vb.net > april 2005 >

vb.net : Total seconds of day



Kerry Moorman
4/1/2005 10:15:04 AM
Marty,

Here is one way that might work for you:

Dim dt As DateTime = Now

MsgBox(dt.TimeOfDay.TotalSeconds)

Kerry Moorman


[quoted text, click to view]
Dennis
4/1/2005 4:57:01 PM
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.

[quoted text, click to view]
Marty
4/1/2005 5:51:59 PM
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
4/1/2005 6:50:05 PM
Great,
thank you,
Marty

[quoted text, click to view]
Herfried K. Wagner [MVP]
4/1/2005 9:28:51 PM
"Marty" <xmarty99@hotmail.com> schrieb:
[quoted text, click to view]

\\\
Dim d As Double = Now().TimeOfDay.TotalSeconds
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Crouchie1998
4/1/2005 9:40:19 PM
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

Oenone
4/1/2005 11:00:22 PM
[quoted text, click to view]

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

(I personally appreciate all of your posts, so please don't stop posting
them).

--

(O) e n o n e

Cor Ligthert
4/2/2005 8:34:00 AM
Marty,
[quoted text, click to view]
dim totalseconds as double = 24 * 60 * 60

I hope this helps,

Cor

Stephany Young
4/2/2005 9:41:33 AM
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.


[quoted text, click to view]

Herfried K. Wagner [MVP]
4/2/2005 12:56:50 PM
Cor,

"Cor Ligthert" <notmyfirstname@planet.nl> schrieb:
[quoted text, click to view]

LOL -- I thought about giving this answer too :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
Stephany Young
4/2/2005 6:59:00 PM
You'll get growled at :)


[quoted text, click to view]

Richard Myers
4/2/2005 11:38:24 PM
Grouchie,

Your post makes you seem like a shithead.


[quoted text, click to view]

Marty
4/3/2005 9:22:12 PM
lol :)




[quoted text, click to view]
AddThis Social Bookmark Button