|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.util.ScheduleUtil
class ScheduleUtil
Utility functions for Schedule
and supporting classes.
Field Summary | |
---|---|
(package private) static Calendar |
epochDay
|
(package private) static Calendar |
midnightTime
|
Constructor Summary | |
---|---|
ScheduleUtil()
|
Method Summary | |
---|---|
static void |
assertTrue(boolean b)
|
static void |
assertTrue(boolean b,
String s)
|
static Calendar |
ceiling(Calendar calendar)
Returns a calendar rounded up to the next midnight, unless it is already midnight. |
static Calendar |
createCalendar(Date date)
Creates a calendar in UTC, and initializes it to date . |
static Calendar |
createCalendar(int year,
int month,
int day,
int hour,
int minute,
int second)
Creates a calendar in UTC, and initializes it to a given year, month, day, hour, minute, second. |
static Calendar |
createDateCalendar(int year,
int month,
int dayOfMonth)
Creates a calendar and sets it to a given year, month, date. |
static Time |
createTime(int hour,
int minutes,
int second)
Creates a Time |
static Calendar |
createTimeCalendar(int hours,
int minutes,
int seconds)
Creates a calendar and sets it to a given hours, minutes, seconds. |
static Calendar |
createTimeCalendar(Time time)
Creates a calendar from a time. |
static Calendar |
floor(Calendar calendar)
Returns a calendar rounded down to the previous midnight. |
static Calendar |
getTime(Calendar calendar)
Extracts the time part of a date. |
static boolean |
is0000(Calendar calendar)
|
static boolean |
isTime(Calendar calendar)
|
static int |
julianDay(Calendar calendar)
Returns the julian day number of a given date. |
static boolean |
lessThan(Date d1,
Date d2,
boolean strict)
|
static boolean |
lessThan(Time t1,
Time t2,
boolean strict)
|
static Error |
newInternal()
|
static Error |
newInternal(String s)
|
static Error |
newInternal(Throwable e,
String s)
|
static int |
timezoneOffset(TimeZone tz,
Calendar calendar)
Returns the offset from UTC in milliseconds in this timezone on a given date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final Calendar epochDay
static final Calendar midnightTime
Constructor Detail |
---|
ScheduleUtil()
Method Detail |
---|
public static void assertTrue(boolean b)
public static void assertTrue(boolean b, String s)
public static Error newInternal()
public static Error newInternal(Throwable e, String s)
public static Error newInternal(String s)
public static boolean lessThan(Time t1, Time t2, boolean strict)
public static boolean lessThan(Date d1, Date d2, boolean strict)
public static boolean is0000(Calendar calendar)
public static boolean isTime(Calendar calendar)
public static Calendar floor(Calendar calendar)
public static Calendar ceiling(Calendar calendar)
public static Calendar getTime(Calendar calendar)
public static Calendar createCalendar(Date date)
date
.
public static Calendar createCalendar(int year, int month, int day, int hour, int minute, int second)
public static Calendar createTimeCalendar(Time time)
public static Calendar createTimeCalendar(int hours, int minutes, int seconds)
public static Calendar createDateCalendar(int year, int month, int dayOfMonth)
public static Time createTime(int hour, int minutes, int second)
Time
public static int julianDay(Calendar calendar)
public static int timezoneOffset(TimeZone tz, Calendar calendar)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |