| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static long | |
| public static long | Returns: the floor of the quotientthe numerator n, long a divisor that must be greater than 0 d)Divides two integers and returns the floor of the quotient. |
| public static int | Returns: the floor of the quotientthe numerator n, int a divisor that must be greater than 0 d)Divides two integers and returns the floor of the quotient. |
| public static int | Returns: the floor of the quotient.the numerator n, int a divisor which must be > 0 d, int[] an array of at least one element in which the value
r)mod(n, d) is returned.Divides two integers and returns the floor of the quotient and the modulus remainder. |
| public static boolean | Returns: true if the given year is a leap year in the Gregorian calendar system.a Gregorian calendar year gregorianYear)Returns whether the specified year is a leap year in the Gregorian calendar system. |
| public static boolean | Returns: true if the given year is a leap year in the Julian calendar system.a normalized Julian calendar year normalizedJulianYear)Returns whether the specified year is a leap year in the Julian calendar system. |
| public static long | |
| public static int | |
| public static StringBuilder | |
| public static StringBuffer |
| CalendarUtils | back to summary |
|---|---|
| private CalendarUtils() | |
| amod | back to summary |
|---|---|
| public static int amod(int x, int y) | |
| amod | back to summary |
|---|---|
| public static long amod(long x, long y) | |
| floorDivide | back to summary |
|---|---|
| public static long floorDivide(long n, long d) Divides two integers and returns the floor of the quotient.
For example,
| |
| floorDivide | back to summary |
|---|---|
| public static int floorDivide(int n, int d) Divides two integers and returns the floor of the quotient.
For example,
| |
| floorDivide | back to summary |
|---|---|
| public static int floorDivide(int n, int d, int[] r) Divides two integers and returns the floor of the quotient and
the modulus remainder. For example,
| |
| isGregorianLeapYear | back to summary |
|---|---|
| public static boolean isGregorianLeapYear(int gregorianYear) Returns whether the specified year is a leap year in the Gregorian calendar system.
| |
| isJulianLeapYear | back to summary |
|---|---|
| public static boolean isJulianLeapYear(int normalizedJulianYear) Returns whether the specified year is a leap year in the Julian calendar system. The year number must be a normalized one (e.g., 45 B.C.E. is 1-45).
| |
| mod | back to summary |
|---|---|
| public static long mod(long x, long y) | |
| mod | back to summary |
|---|---|
| public static int mod(int x, int y) | |
| sprintf0d | back to summary |
|---|---|
| public static StringBuilder sprintf0d(StringBuilder sb, int value, int width) Mimics sprintf(buf, "%0*d", decaimal, width). | |
| sprintf0d | back to summary |
|---|---|
| public static StringBuffer sprintf0d(StringBuffer sb, int value, int width) | |