Save This Page
Home » openjdk-7 » sun » util » calendar » [javadoc | source]
sun.util.calendar
public class: CalendarUtils [javadoc | source]
java.lang.Object
   sun.util.calendar.CalendarUtils
Method from sun.util.calendar.CalendarUtils Summary:
amod,   amod,   floorDivide,   floorDivide,   floorDivide,   floorDivide,   isGregorianLeapYear,   isJulianLeapYear,   mod,   mod,   sprintf0d,   sprintf0d
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.util.calendar.CalendarUtils Detail:
 public static final int amod(int x,
    int y) 
 public static final long amod(long x,
    long y) 
 public static final long floorDivide(long n,
    long d) 
    Divides two integers and returns the floor of the quotient. For example, floorDivide(-1, 4) returns -1 while -1/4 is 0.
 public static final int floorDivide(int n,
    int d) 
    Divides two integers and returns the floor of the quotient. For example, floorDivide(-1, 4) returns -1 while -1/4 is 0.
 public static final int floorDivide(int n,
    int d,
    int[] r) 
    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.
 public static final int floorDivide(long n,
    int d,
    int[] r) 
    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.
 public static final boolean isGregorianLeapYear(int gregorianYear) 
    Returns whether the specified year is a leap year in the Gregorian calendar system.
 public static final 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).
 public static final long mod(long x,
    long y) 
 public static final int mod(int x,
    int y) 
 public static final StringBuilder sprintf0d(StringBuilder sb,
    int value,
    int width) 
    Mimics sprintf(buf, "%0*d", decaimal, width).
 public static final StringBuffer sprintf0d(StringBuffer sb,
    int value,
    int width)