Git Product home page Git Product logo

aviation's People

Contributors

propensive avatar

Stargazers

 avatar

Watchers

 avatar  avatar

aviation's Issues

Provide a "manual" clock

For testing, it would be useful to provide a clock which is stopped, but has a manual tick method for advancing it. This will need to ensure that any methods which measure time make reference to the clock. It's not clear if this is possible.

Represent recurrent events

It should be possible to represent recurrent events which repeat periodically

It should support repetition with multiples of:

  • annually
  • monthly
  • weekly
  • daily
  • hourly
  • minutely
    where the repetitions are determined by,
  • at a numbered second in a minute
  • at a numbered minute and second in an hour
  • at a given time in a day
  • on a given day each week
  • on a given date each month
  • on a given week and day each month
  • on a given week number and day each year
  • on a given date each year
  • on a given week in a given month each year

Combinations of these should most scenarios, though others may remain...

Use macro to verify times

Undated times can be represented in terms such as 2.05.pm or 12.00.am but by default, it's not possible to disambiguate between 2.0.pm and 2.00.pm where the former should be seen as an invalid time. A macro can be used to check this.

Provide different interpretations of `Instant`s

Leap seconds cause all kinds of problems.

UNIX time increases by 86400 seconds every day, even on days when there is a leap second. On these days, the same numerical time can ambiguously represent distinct times (one second apart). This can affect calculations involving durations which span leap seconds.

Conversely, TAI does account for leap seconds.

I think that internally representing an Instant as TAI or UNIX time are both viable, and new instances of Instants in either representation could be constructed from UNIX timestamps or TAI timestamps, potentially raising ambiguity issues.

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.