时间日志应用 [英] time log application
问题描述
你好我',有兴趣为员工编写程序,所以当他们登录他们的帐户时,程序会识别用户并在时钟中记录他们,并在他们注销时记录。
mark
hello i', interested in writing a program for employees so when they login to their account the program will recognize the user and log them in the time clock and the same for when they log off.
mark
推荐答案
Hello mark,
Hello mark,
首先请告诉我们您希望开发哪种应用。这是UWP论坛所以如果你想开发一个与UWP相关的项目,请首先按照这个页面编辑你的标签
https://social.msdn.microsoft.com/Forums/windowsapps/en -US / b479e984-ca39-4b34-a6b7-85194b54d8bd / guide-to-posting-subject-line-tags?forum = wpdevelop
First of all please tell us which kind of app do you want to develop. This is UWP forum so if you want to develop a UWP related project please first edit your tags by follow this page https://social.msdn.microsoft.com/Forums/windowsapps/en-US/b479e984-ca39-4b34-a6b7-85194b54d8bd/guide-to-posting-subject-line-tags?forum=wpdevelop
这里我假设你正在尝试构建一个UWP应用程序。如果您使用C#,则记录您只需要使用此类的时间:
Here I assume that you are trying to build a UWP app. And to log the time you just need to use this class if you use C#:
https://msdn.microsoft.com/en-us/library/system.datetimeoffset(v = vs.110).aspx
通过这种方式,您可以使用DateTimeOffset.Now获取当前时间,然后您可以将其记录在日志中或任何您想要的地方。
In this way you can use DateTimeOffset.Now to get the current time and then you can log it in your logs or anywhere you want.
Best问候,
巴里
这篇关于时间日志应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!