如何通过vb.net来计算登录和注销之间的时间间隔 [英] how to calculate the time interval between login and logout in a form by vb.net
本文介绍了如何通过vb.net来计算登录和注销之间的时间间隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过vb.net计算表单登录和注销之间的时间间隔:doh:
推荐答案
认真吗?
MSDN时间跨度结构 [
Seriously?
MSDN TimeSpan Structure[^]
From the MSDN page.
Dim departure As DateTime = #06/12/2010 6:32PM#
Dim arrival As DateTime = #06/13/2010 10:47PM#
Dim travelTime As TimeSpan = arrival - departure
Console.WriteLine("{0} - {1} = {2}", arrival, departure, travelTime)
用户登录时,请记录时间.
用户注销后,再次记录时间.
查找记录的时间之间的时差.
有什么问题? :omg:
When the user login, log the time.
When the user logs out, log the time again.
Find the difference between the logged time.
What''s the problem? :omg:
这篇关于如何通过vb.net来计算登录和注销之间的时间间隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文