Earlier quoted context omitted.
No. The clocks use the local Date object, but the rotation calculations for hour hand were copied over from a 12 hour clock. One downside of 24 hour clocks: a broken one is only right once a day.
Another downside is that it's confusing all day long. I have yet to see such clock somewhere else than US television. And to be honest, I don't see a point of such clock-face.
Show HN: SVG Clocks
41–43 of 43 posts
Re: Show HN: SVG Clocks
#42Earlier quoted context omitted.
yeah you'll need some code to animate the handles.
If by 'handles' you mean hands, what I built does that with CSS3's animation and transformations. No JS necessary. It's setting the initial positions that's the problem - CSS has no clock functionality. The only non-JS solution is to tell people to only load the page at exactly 12:00:00, but that's a bit impractical.
If it's just a problem of initialization, couldn't you include a continuously-updated current_time.css file served with cache-control: no-cache?
You could estimate timezone from IP. It's not perfect, but it's the best you're gonna get without getTimezoneOffset().
Re: Show HN: SVG Clocks
#43TIL one can embed javascript in SVG. Can it be used to do more than just changing the positions and rotations of objects already defined in the file? (In other words, could someone write Space Invaders entirely in SVG?)