We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,最近我在阅读你的代码时,发现C#获取当前系统时间是用UTC时间,而Java是非UTC时间,这样设计是有啥考虑嘛? C#
protected virtual long GetCurrentTimeTick() { //return (long)(DateTime.UtcNow - BaseTime).Ticks; //return (long)(_StartTimeTick + Environment.TickCount); return (long)(DateTime.UtcNow - BaseTime).TotalMilliseconds; }
Java
protected long GetCurrentTimeTick() { long millis = System.currentTimeMillis(); return millis - BaseTime; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你好,最近我在阅读你的代码时,发现C#获取当前系统时间是用UTC时间,而Java是非UTC时间,这样设计是有啥考虑嘛?
C#
Java
The text was updated successfully, but these errors were encountered: