public class WorkUnit extends Object
Represents working hours.
Constructor and Description |
---|
WorkUnit(Date from,
Date to)
Creates new WorkUnit object with the specified From and To dates.
|
Modifier and Type | Method and Description |
---|---|
Date |
getFrom()
Returns the From date.
|
Date |
getTo()
Returns the To date.
|
long |
getWorkingHours()
Returns the duration of working hours.
|
void |
setFrom(Date value)
Sets the From date.
|
void |
setTo(Date value)
Sets the To date.
|
void |
setWorkingHours(long value)
Sets the duration of working hours.
|
public Date getFrom()
Date
).public void setFrom(Date value)
value
- the From date (Date
).public Date getTo()
Date
).public void setTo(Date value)
value
- the To date (Date
).public long getWorkingHours()
public void setWorkingHours(long value)
value
- the duration of working hours.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.