propensive / aviation Goto Github PK
View Code? Open in Web Editor NEWRepresentations of time, in its various forms, for Scala
Home Page: https://propensive.com/temporaneous
License: Apache License 2.0
Representations of time, in its various forms, for Scala
Home Page: https://propensive.com/temporaneous
License: Apache License 2.0
This document provides detailed calculations.
Modified Julian Date, apart from having a fixed 2400000 offset from the Julian Date, uses midnight as its basis rather than noon.
It should be possible to represent recurrent events which repeat periodically
It should support repetition with multiples of:
Combinations of these should most scenarios, though others may remain...
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.
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 Instant
s in either representation could be constructed from UNIX timestamps or TAI timestamps, potentially raising ambiguity issues.
RFC3339 defines a format for durations.
The name "Temporaneous" was always a bit too direct.
The easiest way to implement this would be to wrap java.util
's Date
and related classes.
Anticipation provides a typeclass interface for time, and we should provide instances for it.
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.
Instead of using System.currentTimeMillis
, this would give the impression of the "current time" being an input to a pure function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.