Popularity
4.1
Stable
Activity
0.0
-
67
48
8
Programming language: Scala
License: MIT License
Tags:
Extensions
Latest version: v0.3.2
chronoscala alternatives and similar packages
Based on the "Extensions" category.
Alternatively, view chronoscala alternatives based on common mentions on social networks and blogs.
-
cats
Lightweight, modular, and extensible library for functional programming. -
Cassovary
Cassovary is a simple big graph processing library for the JVM -
scala.meta
Library to read, analyze, transform and generate Scala programs -
Enumeratum
A type-safe, reflection-free, powerful enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations. -
Scala-Logging
Convenient and performant logging library for Scala wrapping SLF4J. -
Chimney
Scala library for boilerplate-free, type-safe data transformations -
Freestyle
A cohesive & pragmatic framework of FP centric Scala libraries -
tinylog
tinylog is a lightweight logging framework for Java, Kotlin, Scala, and Android -
Scala Graph
Graph for Scala is intended to provide basic graph functionality seamlessly fitting into the Scala Collection Library. Like the well known members of scala.collection, Graph for Scala is an in-memory graph library aiming at editing and traversing graphs, finding cycles etc. in a user-friendly way. -
scribe
The fastest logging library in the world. Built from scratch in Scala and programmatically configurable. -
Each
A macro library that converts native imperative syntax to scalaz's monadic expressions -
Rapture
a collection of libraries for common, everyday programming tasks (I/O, JSON, i18n, etc.) -
Stateless Future
Asynchronous programming in fully featured Scala syntax. -
Scala Blitz
Scala framework for efficient sequential and data-parallel collections - -
Squid
Squid – type-safe metaprogramming and compilation framework for Scala -
Records for Scala
Labeled records for Scala based on structural refinement types and macros. -
Play monadic actions
A simple scala DSL to allow clean and monadic style for Play! Actions -
enableIf.scala
A library that toggles Scala code at compile-time, like #if in C/C++ -
Freasy Monad
Easy way to create Free Monad using Scala macros with first-class Intellij support. -
Lamma
Lamma schedule generator for Scala is a professional schedule generation library for periodic schedules like fixed income coupon payment, equity deravitive fixing date generation etc. -
wvlet-log
A library for enhancing your application logs with colors and source code locations. -
Resolvable
A library to optimize fetching immutable data structures from several endpoints in several formats. -
Freedsl
Practical effect composition library based on abstract wrapping type and the free monad
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Promo
www.sonarqube.org
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of chronoscala or a related project?
Popular Comparisons
README
chronoscala
A JSR-310 port of nscala_time
Supported environment
- Scala 2.12.x / 2.13.x / 3.0.x
- Requries Java 8 or later
- Scala.js
Installation
libraryDependencies += "io.github.chronoscala" %% "chronoscala" % LATEST_VERSION
Usage
import io.github.chronoscala.Imports._
ZonedDateTime.now() + 2.months // returns java.time.ZonedDateTime = 2016-09-12T02:24:22.724+09:00[Asia/Tokyo]
OffsetDateTime.now() + 2.months // returns java.time.OffsetDateTime = 2016-09-12T02:24:22.724+09:00
ZonedDateTime.now() < ZonedDateTime.now() + 1.month // returns true
ZonedDateTime.now() to (ZonedDateTime.now() + 1.day) // returns Interval(2016-07-11T19:15:42.641Z,2016-07-12T19:15:42.641Z)
(ZonedDateTime.now() to (ZonedDateTime.now() + 1.second)).millis // returns 1000
2.hours + 45.minutes + 10.seconds // returns PT2H45M10S
(2.hours + 45.minutes + 10.seconds).millis // returns 9910000
2.months + 3.days // returns P2M3D
LocalDate.now() to (LocalDate.now() + 7.days) by 2.days // returns DateInterval(2016-09-04, 2016-09-06, 2016-09-08, 2016-09-10)
Chronoscala also provides NamespacedImports
to avoid conflicts between other package such as scala.concurrent.duration
.
import io.github.chronoscala.NamespacedImports._
// Methods are namespaced with `cs`.
2.cs.months + 3.cs.days // returns P2M3D
2L.cs.seconds + 3L.cs.seconds // returns PT5S
ClockProvider
ClockProvider
is useful for unit testing.
import io.github.chronoscala.Imports._
import io.github.chronoscala.ClockProvider
ClockProvider.setCurrentClockFixedMillis(0L)
Instant.now() // returns 1970-01-01T00:00:00Z