All Packages Class Hierarchy This Package Previous Next Index
Class jclass.chart.JCChartTimeUtil
java.lang.Object
|
+----jclass.chart.JCChartTimeUtil
- public class JCChartTimeUtil
- extends Object
JCChartTimeUtil is a collection of static methods and static
variables associated with time that are used throughout JCChart.
-
MAX_YEAR
-
-
MIN_YEAR
-
-
JCChartTimeUtil()
-
-
roundTime(Date, long, boolean)
- Round the time down/up to the given unit.
-
timeLabel(String, Date)
- Given a format string and an instance of Date, returns a
formatted time label.
MIN_YEAR
public static final int MIN_YEAR
MAX_YEAR
public static final int MAX_YEAR
JCChartTimeUtil
public JCChartTimeUtil()
timeLabel
public static String timeLabel(String format,
Date dt)
- Given a format string and an instance of Date, returns a
formatted time label.
roundTime
public static void roundTime(Date d,
long unit,
boolean adjust)
- Round the time down/up to the given unit.
eg. Feb 6 gets adjusted to Feb 1 00:00:00
or, if adjust is true, to Mar 1 00:00:00
All Packages Class Hierarchy This Package Previous Next Index