File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9090 [o]
9191 (java.sql.Timestamp/from (jt.t/instant o)))
9292
93- (defn ^long to-millis-from-epoch
93+ (defn to-millis-from-epoch
9494 " Converts a date entity to a `long` representing the number of milliseconds
9595 from epoch."
96- [o]
96+ ^long [o]
9797 (if (number? o) (long o)
9898 (.toEpochMilli (jt.t/instant o))))
Original file line number Diff line number Diff line change 1010 [java.time.format DateTimeFormatter]
1111 [java.time Clock Year Month YearMonth MonthDay DayOfWeek ZoneId Instant]))
1212
13- (defn- ^long get-only-unit-value [^TemporalAmount a, ^TemporalUnit u]
13+ (defn- get-only-unit-value ^long [^TemporalAmount a, ^TemporalUnit u]
1414 (let [non-zero-units
1515 (->> (.getUnits a)
1616 (map (fn [^TemporalUnit tu] (vector tu (.get a tu))))
You can’t perform that action at this time.
0 commit comments