|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Total seconds of dayHi
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 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 > 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 >> "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/> 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. 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 > > Crouchie1998 wrote:
> You should really read the previous post before answering because I Yeah Herfried, stop being so darned helpful! ;-)> have seen you have answered using the same code in many posts in this > newsgroup previously. (I personally appreciate all of your posts, so please don't stop posting them). -- (O) e n o n e 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 > > 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/> > Marty,
> dim totalseconds as double = 24 * 60 * 60> How can I get the total seconds in the current day? > I hope this helps, Cor 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 > Cor,
"Cor Ligthert" <notmyfirstn***@planet.nl> schrieb: LOL -- I thought about giving this answer too :-).>> How can I get the total seconds in the current day? >> > dim totalseconds as double = 24 * 60 * 60 -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> 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 :-). >
sorting files retrieved by OpenFileDialog
VB.Net Joining Paradox and SQL Server Table? Insert Border around a picture Read private variables between forms touch screen monitors Terminating a thread Resize Tab control when windows form resizes COM, LPT and USB to C, C++ Interface. File locking problem Send a message to a thread |
|||||||||||||||||||||||