I just ported some NTP stuff from an old program.
Querying an NTP server is surprisingly easy: just send it a 48 byte UDP packet with the first byte = 27 and the rest of them 0.
The NTP server should return your 48 byte packet updated with the last 16 bytes set to two 64-bit timestamps, being...
I have a Code
var r = globalActions.getUtcTime(-2e3)
var i = r.getUTCHours() * 3600 + r.getUTCMinutes() * 60 + r.getUTCSeconds()
console.log(r)
console.log(i)
//Mon Feb 05 2024 20:12:45 GMT+0330 (Iran Standard Time)
//60165
i Want to Convert To B4j
How ??
Hey everyone!
Background: I recently moved to Queensland (Australia) which doesn't have daylight savings like the southern states (where I'm from) do. Consequently, during summer the sun comes up at the ungodly hour of 4:45am or thereabouts.
It got me thinking, would it be possible to design...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.