File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 458
458
(in-weeks [this] (-> this .toPeriod .toStandardWeeks .getWeeks))
459
459
(in-months [this]
460
460
(condp instance? this
461
- org.joda.time.Months (.getMonths this)
462
- org.joda.time.Years (* 12 (.getYears this))
463
- (throw
464
- (UnsupportedOperationException.
461
+ org.joda.time.Months (.getMonths ^org.joda.time.Months this)
462
+ org.joda.time.Years (* 12 (.getYears ^org.joda.time.Years this))
463
+ (throw
464
+ (UnsupportedOperationException.
465
465
" Cannot convert to Months because months vary in length." ))))
466
- (in-years [this]
467
- (condp instance? this
468
- org.joda.time.Months (int (/ (.getMonths this) 12 ))
469
- org.joda.time.Years (.getYears this)
470
- (throw
471
- (UnsupportedOperationException.
466
+ (in-years [this]
467
+ (condp instance? this
468
+ org.joda.time.Months (int (/ (.getMonths ^org.joda.time.Months this) 12 ))
469
+ org.joda.time.Years (.getYears ^org.joda.time.Years this)
470
+ (throw
471
+ (UnsupportedOperationException.
472
472
" Cannot convert to Years because years vary in length." )))))
473
473
474
474
(defn in-msecs
You can’t perform that action at this time.
0 commit comments