placrosse / scala-datetime Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Scala Date&Time Goals: - A native and idiomatic Scala library for time, date and calendar related work. - Code shall be Scala only to be reasonably platform-independent. Status: - This code is actively developed, but not yet production-ready. If you need something useable NOW, consider the JodaTime wrappers scalaj-time by Jorge Ortiz. - The source code is based on the reference implementation of JSR-310 - ThreeTen - which was ported to Scala. - The Scala packages lives in the "scalax.time" namespace currently. - Class hierarchy has not yet been changed - Improved naming: LocalDate/LocalTime/LocalDateTime => Date/Time/DateTime, ZoneId => TimeZone Strategy: - Java's "constructor arguments + field + getter" pattern are already replaced by class Foo(val bar: ...) or similiar. - Properties replace getters/setters. - Methods with default arguments replace overloaded methods. - scala.Serializable replaces java.io.Serializable. - scala.math.Ordered replaces java.lang.Comparable. - Objects extending sealed/abstract classes replace Java's enumeration. Bug #4023 blocks further progress. - Usages of BigInteger/BigDecimal are replaced by BigInt/BigDecimal. - Methods return something like "Option[Int]" instead of "Integer (or null)". ToDo: - Get the ThreeTen tests running against Scala Date&Time (main focus currently) - Some algorithms could need further cleanup. - A few places with "continue" need investigation to be replaced. - There are some classes which do some "reification" magic. These might be replaced by a simple Manifest. - The code has a few places where Java collections instead of Scala collections are used. - ResourceZoneRulesDataProvider, StandardZoneRules, PeriodUnit and TZDBZoneRulesCompiler need additional attention. - Most of the static initializers and classes with multiple constructors are fixed, but a few tricky ones remain (especially exceptions). - JavaDoc-style comments need to converted to ScalaDoc-style comments. - Add convenience methods like "5 seconds" or "7 days" Advice, comments, criticism, contributions or help is welcome!
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.