yole / Kxdate
Licence: apache-2.0
Kotlin extensions for Java 8 java.time API
Stars: ✭ 212
Programming Languages
kotlin
9241 projects
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].