How to convert long/milliseconds to DateTime?


Java developer making the switch. I have timestamps stored in Oracle as
a long (gotten from java.sql.Timestamp - milliseconds from some day in
1970). Is there a way to convert that long back into a Ruby
Date/DateTime/Time . Any of these would do.

Did not find a method in the library…



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs