一天中的总秒数 [英] Total seconds of day

查看:145
本文介绍了一天中的总秒数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如何获得当天的总秒数?


我认为这有助于(DateTime.Now .Second),但它返回

只在当前分钟的秒数。


问候

Marty

解决方案

Marty,


这是一种可能适合你的方式:


Dim dt As DateTime =现在


MsgBox(dt.TimeOfDay.TotalSeconds)


Kerry Moorman

" Marty"写道:



如何获得当天的总秒数?

我认为这有助于( DateTime.Now.Second),但它只返回当前分钟的秒数。

关于
Marty



很好,

谢谢你,

Marty


Kerry Moorman写道:
< blockquote class =post_quotes> Marty,

这是一种可能适合你的方式:

Dim dt As DateTime =现在

MsgBox (dt.TimeOfDay.TotalSeconds)

Kerry Moorman

" Marty"写道:



如何获得当天的总秒数?

我认为这有助于(DateTime.Now.Second),但它只返回当前分钟内的nb秒。

关注
Marty



" Marty" < XM ****** @ hotmail.com> schrieb:

如何获得当天的总秒数?




\\\

Dim d As Double = Now()。TimeOfDay.TotalSeconds

///


-

MS Herfried K 。瓦格纳

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http://classicvb.org/petition/ >


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
"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:

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" <xm******@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/>


这篇关于一天中的总秒数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆