com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class WorkUnit



  • public class WorkUnit
    extends Object

    Represents working hours.

    • Constructor Detail

      • WorkUnit

        public WorkUnit(Date from,
                        Date to)

        Creates new WorkUnit object with the specified From and To dates.

        Parameters:
        from - Start date of working hours.
        to - Finish date of working hours.
    • Method Detail

      • getFrom

        public Date getFrom()
        Returns the From date.
        Returns:
        the From date (Date).
      • setFrom

        public void setFrom(Date value)
        Sets the From date.
        Parameters:
        value - the From date (Date).
      • getTo

        public Date getTo()
        Returns the To date.
        Returns:
        the To date (Date).
      • setTo

        public void setTo(Date value)
        Sets the To date.
        Parameters:
        value - the To date (Date).
      • getWorkingHours

        public long getWorkingHours()
        Returns the duration of working hours.
        Returns:
        the duration of working hours.
      • setWorkingHours

        public void setWorkingHours(long value)
        Sets the duration of working hours.
        Parameters:
        value - the duration of working hours.