Inherits Object.
|
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::TimeSpan |
fromTime, |
|
|
System::TimeSpan |
toTime |
|
) |
| |
Initializes a new instance of the WorkingTime class with an interval item with the specified start and finish times.
- Parameters
-
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: [C#] var wt = new WorkingTime(new TimeSpan(9, 0, 0), new TimeSpan(18, 0, 0));
- Exceptions
-
ArgumentException | When toTime less than of equal to toTime argument or when interval between fromTime and toTime is greater than 24 hours. |