java.lang.Object | |
↳ | sun.util.calendar.CalendarUtils |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Divides two integers and returns the floor of the quotient.
| |||||||||||
Divides two integers and returns the floor of the quotient and
the modulus remainder.
| |||||||||||
Divides two integers and returns the floor of the quotient and
the modulus remainder.
| |||||||||||
Divides two integers and returns the floor of the quotient.
| |||||||||||
Returns whether the specified year is a leap year in the Gregorian
calendar system.
| |||||||||||
Returns whether the specified year is a leap year in the Julian
calendar system.
| |||||||||||
Mimics sprintf(buf, "%0*d", decaimal, width).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Divides two integers and returns the floor of the quotient.
For example, floorDivide(-1, 4)
returns -1 while
-1/4 is 0.
n | the numerator |
---|---|
d | a divisor that must be greater than 0 |
Divides two integers and returns the floor of the quotient and
the modulus remainder. For example,
floorDivide(-1,4)
returns -1
with
3
as its remainder, while -1/4
is
0
and -1%4
is -1
.
n | the numerator |
---|---|
d | a divisor which must be > 0 |
r | an array of at least one element in which the value
mod(n, d) is returned. |
Divides two integers and returns the floor of the quotient and
the modulus remainder. For example,
floorDivide(-1,4)
returns -1
with
3
as its remainder, while -1/4
is
0
and -1%4
is -1
.
n | the numerator |
---|---|
d | a divisor which must be > 0 |
r | an array of at least one element in which the value
mod(n, d) is returned. |
Divides two integers and returns the floor of the quotient.
For example, floorDivide(-1, 4)
returns -1 while
-1/4 is 0.
n | the numerator |
---|---|
d | a divisor that must be greater than 0 |
Returns whether the specified year is a leap year in the Gregorian calendar system.
gregorianYear | a Gregorian calendar year |
---|
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).
normalizedJulianYear | a normalized Julian calendar year |
---|
Mimics sprintf(buf, "%0*d", decaimal, width).