Aspose.Tasks for C++
|
Represents a working time during a weekday. More...
#include <WorkingTime.h>
Inherits System::Object.
Public Member Functions | |
System::DateTime | get_From () const |
Gets the beginning of a working time. More... | |
System::DateTime | get_To () const |
Gets the end of a working time. More... | |
WorkingTime (System::DateTime fromTime, System::DateTime toTime) | |
Initializes a new instance of the WorkingTime class with a interval with the specified start and finish times. More... | |
WorkingTime (System::TimeSpan fromTime, System::TimeSpan toTime) | |
Initializes a new instance of the WorkingTime class with an interval item with the specified start and finish times. More... | |
WorkingTime (int32_t fromHours, int32_t toHours) | |
Initializes a new instance of the WorkingTime class with an interval item with the specified start and finish times. More... | |
bool | Equals (System::SharedPtr< System::Object > obj) override |
Checks that the objects are equal. More... | |
int32_t | GetHashCode () const override |
Returns a hash code value for the instance of the WorkingTime class. More... | |
Represents a working time during a weekday.
Aspose::Tasks::WorkingTime::WorkingTime | ( | System::DateTime | fromTime, |
System::DateTime | toTime | ||
) |
Initializes a new instance of the WorkingTime class with a interval with the specified start and finish times.
fromTime | interval start time |
toTime | interval end time |
Aspose::Tasks::WorkingTime::WorkingTime | ( | System::TimeSpan | fromTime, |
System::TimeSpan | toTime | ||
) |
Initializes a new instance of the WorkingTime class with an interval item with the specified start and finish times.
fromTime | Interval's start time represented by TimeSpan struct. |
toTime | Interval's end time represented by TimeSpan struct. |
The overload of WorkingTime ctor can be used to initialize interval's start and end using TimeSpans:
ArgumentException | When toTime less than of equal to toTime argument or when interval between fromTime and toTime is greater than 24 hours. |
Aspose::Tasks::WorkingTime::WorkingTime | ( | int32_t | fromHours, |
int32_t | toHours | ||
) |
Initializes a new instance of the WorkingTime class with an interval item with the specified start and finish times.
fromHours | Interval's start time represented by whole number of hours (0-24). |
toHours | Interval's end time represented by whole number of hours (0-24). |
The overload of WorkingTime ctor can be used to initialize interval's start and end using whole hours:
ArgumentException | When toTime less than of equal to toTime argument or when interval between fromTime and toTime is greater than 24 hours. |
|
override |
Checks that the objects are equal.
obj | Second object to compare. |
System::DateTime Aspose::Tasks::WorkingTime::get_From | ( | ) | const |
Gets the beginning of a working time.
System::DateTime Aspose::Tasks::WorkingTime::get_To | ( | ) | const |
Gets the end of a working time.
|
override |
Returns a hash code value for the instance of the WorkingTime class.