Java Time Issues

JasonSJasonS If I had known it was going to be that kind of party...Posts: 228
Anybody ever deal with UTC time in Duet? It is my understanding that my PC and AMX master both synced to network time should have very similar values for "Date.getTime()" and "System.currentTimeMillis()", as both should be a count of the number of milliseconds elapsed since Jan 1 1970. Displayable time would then be calculated via a TimeZone offset. My Date.getTime() value differs by 5 hours or more, currentTimeMillis by about 3 hours. (Both depend on wether you use integer math or not). Anybody know what is going on? I am trying to generate time stamps on a PC (in Java) and use them in Duet, not sure about using an arbitrary offset because not sure what timezones this might be used in.


Sign In or Register to comment.