如何计算登录时间和登出时间 [英] how to calculate login time and logout time for attandance
本文介绍了如何计算登录时间和登出时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何计算vb.net或c#program中最早的登录时间和最新注销时间
how to calculate earliest login time and latest logout time in vb.net or c# program
推荐答案
你把SQL放在你的标签中,所以我假设你有一个SQL数据库有登录和注销时间(我知道,这是一个biug假设,但公平,你真的没有给我们太多的继续!)
从whatevertablethedataison中选择min(LogInTime),max(logOutTime);
会给你你想要的东西。
You put SQL in your tags, so I assume you have an SQL database with the log in and log out times in it (I know, it's a biug assumption, but be fair, you really didn't give us much to go on!)
Select min(LogInTime) , max (logOutTime) from whatevertablethedataison;
would give you what you want.
这篇关于如何计算登录时间和登出时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文