4 ms·
Or, in a more reusable/flexible way: newTime = currentMillis + 6 * HOUR_IN_MILLIS But an even cleaner solution would be to just use the date/time library fo
by bluefinity 12y ago
Or, in a more reusable/flexible way:
newTime = currentMillis + 6 * HOUR_IN_MILLIS
But an even cleaner solution would be to just use the date/time library for this (depending on the language, of course):
newTime = currentMillis + TimeSpan.FromHours(6).Milliseconds;
- danbruc 12y agoWhy six hours? This definitely needs another constant.