Home All Groups Group Topic Archive Search About
Author
1 Apr 2005 5:51 PM
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

Author
1 Apr 2005 6:15 PM
Kerry Moorman
Marty,

Here is one way that might work for you:

        Dim dt As DateTime = Now

        MsgBox(dt.TimeOfDay.TotalSeconds)

Kerry Moorman


Show quoteHide quote
"Marty" wrote:

> 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
>
Author
1 Apr 2005 6:50 PM
Marty
Great,
thank you,
Marty

Kerry Moorman wrote:

Show quoteHide quote
> Marty,
>
> Here is one way that might work for you:
>
>         Dim dt As DateTime = Now
>
>         MsgBox(dt.TimeOfDay.TotalSeconds)
>
> Kerry Moorman
>
>
> "Marty" wrote:
>
>
>>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
>>
Author
1 Apr 2005 7:28 PM
Herfried K. Wagner [MVP]
"Marty" <xmart***@hotmail.com> schrieb:
> How can I get the total seconds in the current day?

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

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 Apr 2005 8:40 PM
Crouchie1998
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
Author
1 Apr 2005 9:41 PM
Stephany Young
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.


Show quoteHide quote
"Crouchie1998" <crouchie1***@discussions.microsoft.com> wrote in message
news:OLr4usvNFHA.4092@tk2msftngp13.phx.gbl...
> 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
>
>
Author
1 Apr 2005 11:00 PM
Oenone
Crouchie1998 wrote:
> 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).

--

(O) e n o n e
Author
2 Apr 2005 11:38 AM
Richard Myers
Grouchie,

Your post makes you seem like a sh*thead.


Show quoteHide quote
"Crouchie1998" <crouchie1***@discussions.microsoft.com> wrote in message
news:OLr4usvNFHA.4092@tk2msftngp13.phx.gbl...
> 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
>
>
Author
2 Apr 2005 12:57 AM
Dennis
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.

Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "Marty" <xmart***@hotmail.com> schrieb:
> > How can I get the total seconds in the current day?
>
> \\\
> Dim d As Double = Now().TimeOfDay.TotalSeconds
> ///
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
Author
2 Apr 2005 6:34 AM
Cor Ligthert
Marty,
>
> How can I get the total seconds in the current day?
>
dim totalseconds as double = 24 * 60 * 60

I hope this helps,

Cor
Author
2 Apr 2005 6:59 AM
Stephany Young
You'll get growled at :)


Show quoteHide quote
"Cor Ligthert" <notmyfirstn***@planet.nl> wrote in message
news:OO73$30NFHA.3356@TK2MSFTNGP12.phx.gbl...
> Marty,
>>
>> How can I get the total seconds in the current day?
>>
> dim totalseconds as double = 24 * 60 * 60
>
> I hope this helps,
>
> Cor
>
Author
2 Apr 2005 10:56 AM
Herfried K. Wagner [MVP]
Cor,

"Cor Ligthert" <notmyfirstn***@planet.nl> schrieb:
>> How can I get the total seconds in the current day?
>>
> dim totalseconds as double = 24 * 60 * 60

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

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
4 Apr 2005 1:22 AM
Marty
lol :)




Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> Cor,
>
> "Cor Ligthert" <notmyfirstn***@planet.nl> schrieb:
>
>>> How can I get the total seconds in the current day?
>>>
>> dim totalseconds as double = 24 * 60 * 60
>
>
> LOL -- I thought about giving this answer too :-).
>