DISQUS

DISQUS Hello! Pete On Rails is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Converting to and from Unix / Java time (epoch)

Started by peteonrails · 12 months ago

Working in telecom, I have to integrate my Rails and plain Ruby apps with Java or Unix based systems running on remote hosts. Most often these systems are running remotely and are accessed via an XML-over-HTTP interface (no SOAP, no REST, blah…).

I’ve found that one of the most infuriating things that UNIX and Java “roll [...] ... Continue reading »

2 comments

  • We all know there is such thing as a leap year. There is also such thing as a leap second (I think there was one at the end of 2008).

    Is there such thing as a leap millisecond (or any smaller time division for that matter). Or in other words, does:

    javatime == (unixtime * 1000)

    in fact hold true (for those people who do care about ms precision when doing the conversion)?
  • I've never heard of a leap millisecond, but I wouldn't exclude it from the realm of possibility.

Add New Comment

Returning? Login