|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.swiftgantt.common.CalendarUtils
public class CalendarUtils
Common utils for Time.
| Constructor Summary | |
|---|---|
CalendarUtils()
|
|
| Method Summary | |
|---|---|
static int |
calcWorkingDays(Time start,
int dates)
|
static int |
calcWorkingDays(Time start,
Time end,
int[] workingDurationInWeek)
Calculate working days from start day to end day(incluing end day). |
static int |
calcWorkingHourDurationLen(Time start,
Time end,
int workingHoursOfDay,
int startHour)
Calculate hours from start time to end time, with all rest-out hours as one hour. |
static int |
calcWorkingHours(Time start,
Time end,
int workingHoursOfDay,
int startHour)
Calculate actual working hours, by specifying working hours of day and working start hour, in time duration. |
static Time |
cloneTimeByDateOffset(Time time,
int offset)
Deprecated. to Time |
static Time |
cloneTimeByHourOffset(Time time,
int offset)
Deprecated. to Time |
static Time |
cloneTimeByMonthOffset(Time time,
int offset)
Deprecated. to Time |
static Time |
cloneTimeByWeekOffset(Time time,
int offset)
Deprecated. to Time |
static Time |
cloneTimeByYearOffset(Time time,
int offset)
Deprecated. to Time |
static int |
getDaysOfMonth(Time Time)
Deprecated. to Time |
static void |
truncateTime(Time time,
int field)
Deprecated. to Time |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarUtils()
| Method Detail |
|---|
public static int getDaysOfMonth(Time Time)
month -
public static void truncateTime(Time time,
int field)
time - field - The field of Time to keep.
public static int calcWorkingDays(Time start,
int dates)
start - dates -
public static int calcWorkingDays(Time start,
Time end,
int[] workingDurationInWeek)
start - end - workingDurationInWeek -
public static int calcWorkingHourDurationLen(Time start,
Time end,
int workingHoursOfDay,
int startHour)
start - end - workingHoursOfDay - Working hours of a day.startHour -
public static int calcWorkingHours(Time start,
Time end,
int workingHoursOfDay,
int startHour)
start - end - workingHoursOfDay - startHour -
public static Time cloneTimeByDateOffset(Time time,
int offset)
time - offset -
public static Time cloneTimeByHourOffset(Time time,
int offset)
time - offset -
public static Time cloneTimeByWeekOffset(Time time,
int offset)
time - offset -
public static Time cloneTimeByMonthOffset(Time time,
int offset)
time - offset -
public static Time cloneTimeByYearOffset(Time time,
int offset)
time - offset -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||