Popularity
6.2
Stable
Activity
0.0
Stable
225
8
21

Programming language: Kotlin
License: Apache License 2.0
Tags: Misc    

kxdate alternatives and similar libraries

Based on the "Misc" category.
Alternatively, view kxdate alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of kxdate or a related project?

Add another 'Misc' Library

README

kxdate

This library contains various Kotlin extensions for the Java 8 java.time API.

Rails Style Date Constants

kxdate supports the Rails-style syntax for defining date constants:

val twoMonthsLater = 2.months.fromNow

val yesterday = 1.days.ago

(4.months + 5.years).fromNow

Alternatively, you can use the infix call syntax:

val twoMonthsLater = 2 months fromNow
val yesterday = 1 days ago