2018 年高薪帮内推:滴滴出行北京 杭州 + 阿里、蚂蚁杭州 北京 上海 深圳 广州 成都 无锡 厦门 香港
kxdate
Introduction: Kotlin extensions for Java 8 java.time API
Tags:
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
Support Me
Paypal: trinea.cn@gmail.com
Apps

About Me
Google+: Trinea trinea
GitHub: Trinea
Blog: www.trinea.cn