Giter Site home page Giter Site logo

Comments (9)

kotp avatar kotp commented on July 24, 2024

When converting to Time, 46 minutes 40 second (approximately) discrepancy.

Compared to former tests, I mean
.

from ruby.

kytrinyx avatar kytrinyx commented on July 24, 2024

That sounds like daylight savings time. Is the Time in UTC or a local timezone?

from ruby.

kotp avatar kotp commented on July 24, 2024

Daylight savings would not be off by 46 minutes, though. An hour, maybe, as that is what DST does, but , it sounds like minute and second leaps. Date class handles things like that, time class, not so much, from what I understand.

from ruby.

kytrinyx avatar kytrinyx commented on July 24, 2024

A billion seconds, he told us, equals 31 years, 259 days, 1 hour, 46 minutes and 40 seconds.

I don't know if the Date tests are correct or the Time ones. I would have thought that Time accounts for these things, but I have not looked into it.

from ruby.

kotp avatar kotp commented on July 24, 2024

So it looks like I have something good to work from, thanks. Though for one, I did get 39 seconds, so that is what got me thinking about the leap seconds that get put into place.

from ruby.

kytrinyx avatar kytrinyx commented on July 24, 2024

Interesting. I really need to dig into all of this to get a better understanding of it. Time/Date/Timezones always makes me want to hide in a corner somewhere.

from ruby.

kotp avatar kotp commented on July 24, 2024

Yes, it is definitely not a shallow subject. Should have a pull request for you in a matter of moments.

re: #78

from ruby.

kotp avatar kotp commented on July 24, 2024

I can't close this, but the pr #78 was merged and I assume this is closed?

from ruby.

kytrinyx avatar kytrinyx commented on July 24, 2024

Ah, yes. Thanks!

from ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.