Giter Club home page Giter Club logo

chrono.jl's People

Contributors

andyferris avatar femtocleaner[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

nlw0

chrono.jl's Issues

isn't the leapsecond adjustment exactly the wrong way when comparing UTC times?

Not that i understand the issue of leapseconds very well, so my understanding could be wrong. In my understanding the UTC Day 2016-12-31 has a duration of 86401 seconds not 86399. As far as i understand TAI currently ticks slightly too fast in relation to something like solar mean time.

utc1 = Chrono.Time(1hours, UTCDate(2016, 12, 31))
utc2 = Chrono.Time(1hours, UTCDate(2017, 1, 1))
utc2 - utc1

gives:

86399//1 seconds

but in my opinion it should give:

86401//1 seconds

ERROR: UndefVarError: t1 not defined

using Chrono
t1 = Time(12hours + 3.0seconds, UTCDate(2016,7,25))
t1 + 1seconds

produces the error given in the title.

i think this is due to the fact that in src/time.jl you have:

# Mathematical operations
@inline Base.:+(d::Duration, t::Time) = Time(d + t.duration, t1.clock)
@inline Base.:+(t::Time, d::Duration) = Time(t.duration + d, t1.clock)
@inline Base.:-(t::Time, d::Duration) = Time(t.duration - d, t1.clock)

t1.clock should be replaced by t.clock

Astronomical timescales

Nice work! ๐Ÿ‘

Would it make sense to implement the zoo of astronomical timescales in this package or should they rather live someplace else, e.g. AstronomicalTimescales.jl?

ToDo

  • TT (Terrestrial Time)
  • TCG (Geocentric Coordinate Time)
  • TCB (Barycentric Coordinate Time)
  • TDB (Barycentric Dynamical Time)
  • UT1 (Universal Time)

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.