| java.lang.Object com.projity.pm.calendar.WorkingHours
duration | long duration(Code) | | milliseconds of work time in the day
|
serialVersionUID | final static long serialVersionUID(Code) | | |
WorkingHours | public WorkingHours()(Code) | | |
calcTimeAtRemainingWork | public long calcTimeAtRemainingWork(long duration)(Code) | | Calculates the time of day when there is still x time left to do
Parameters: duration - The x time of work left after the return value Time of day |
calcTimeAtWork | public long calcTimeAtWork(long duration)(Code) | | Parameters: duration - |
calcWorkTime | public long calcWorkTime(long time, boolean after)(Code) | | |
calcWorkTimeAfter | public long calcWorkTimeAfter(long time)(Code) | | Calculate how much work time is remaining after the given time.
Parameters: time - |
calcWorkTimeBefore | public long calcWorkTimeBefore(long time)(Code) | | Parameters: date - |
getDuration | public long getDuration()(Code) | | Returns the workTime. |
hasHours | public boolean hasHours()(Code) | | |
hourTime | public static synchronized long hourTime(int hour)(Code) | | |
initialize | void initialize()(Code) | | |
intersectWith | WorkingHours intersectWith(WorkingHours other)(Code) | | Create a new working hours by intersecting this one's ranges with another's. Not that it's possible that the result has
up to twice as many ranges as normal in a worst case
Parameters: other - |
setInterval | public boolean setInterval(int number, Date start, Date end)(Code) | | Used by importing, not the dialog box
Parameters: number - Parameters: start - Parameters: end - |
setInterval | public void setInterval(int number, long start, long end) throws WorkRangeException(Code) | | Set an interval. Start and end must be on 1/1/70 and must have their hours set using a GregorianCalendar
to avoid daylight savings issues.
Parameters: number - - Range number 0 up to Settings.CALENDAR_INTERVALS -1. Currently range is 0-4 Parameters: start - - start time. A value of -1 signifies that this range is null Parameters: end - - end time. If end time is 0, it is treated as midnight the next day throws: WorkRangeException - |
setNonWorking | public void setNonWorking()(Code) | | |
validate | void validate() throws WorkRangeException(Code) | | Validate that the work ranges do not overlap
Parameters: range - |
|
|