Skip to content
/ kxdate Public
forked from yole/kxdate

Kotlin extensions for Java 8 java.time API

License

Notifications You must be signed in to change notification settings

myqonnt/kxdate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Kotlin extensions for Java 8 java.time API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%