Skip to content

Commit

Permalink
Merge pull request #8 from chiangqiqi/master
Browse files Browse the repository at this point in the history
now to 2016 period bug
  • Loading branch information
jacksu committed Jun 3, 2016
2 parents ac93245 + 3dcad64 commit b51c0df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object BasicOper {

// Find the time difference between two dates
val newYear2016 = new DateTime withDate(2016, 1, 1)
val daysToYear2016 = (DateTime.now to newYear2016 toPeriod PeriodType.days).getDays // 到2016年一月ㄧ日還有幾天
val daysToYear2016 = (newYear2016 to DateTime.now toPeriod PeriodType.days).getDays // 到2016年一月ㄧ日還有幾天

// ========== manipulate dates =============
println(DateTime.parse("2014-07-7") + 1.days)
Expand Down

0 comments on commit b51c0df

Please sign in to comment.