Because leap seconds can’t be predicted, Java ignores them entirely. You deal with them by readjusting your computer clocks from precise atomic clocks on the web that know about the leap seconds, then pretending they never happened. For most civil purposes, this suffices. You could not get away with that sloppiness if you were implementing GPS, plotting satellite orbits, or doing astronomy.
GPS uses a SI clock without the leap seconds.
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.16] | The information on this page is for non-military use only. | ||
| You are visitor number 518. | Military use includes use by defence contractors. | ||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/jgloss/leapsecond.html | J:\mindprod\jgloss\leapsecond.html | ||