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)

        Initializes a new instance of the WorkUnit class. 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 final Date getFrom()

        Gets the From date.

        Returns:
        the From date.
      • setFrom

        public void setFrom(Date value)

        Sets the From date.

        Parameters:
        value - the From date.
      • getTo

        public final Date getTo()

        Gets the To date.

        Returns:
        the To date.
      • setTo

        public final void setTo(Date value)

        Sets the To date.

        Parameters:
        value - the To date.
      • getWorkingHours

        public final double getWorkingHours()

        Gets the duration of working hours.

        Returns:
        the duration of working hours.
      • setWorkingHours

        public final void setWorkingHours(double value)

        Sets the duration of working hours.

        Parameters:
        value - the duration of working hours.