Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public final class CalendarInterval implements Serializable, Comparable<Calendar
public final int days;
public final long microseconds;

// CalendarInterval is represented by months, days and microseconds. Months and days are not
// units of time with a constant length (unlike hours, seconds), so they are two separated fields
// from microseconds. One month may be equal to 29, 30 or 31 days and one day may be equal to
// 23, 24 or 25 hours (daylight saving)
public CalendarInterval(int months, int days, long microseconds) {
this.months = months;
this.days = days;
Expand Down