8 #include <system/object.h>
9 #include <system/date_time.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
19 class CalendarDatesCalculator;
20 class CalendarWorkingTimesForwardEnumerator;
21 class DatesCalculator;
22 namespace Recalculation
24 class TimephasedDataCalculationUtil;
26 class TimephasedDataMaker;
27 class WorkingTimeCollection;
43 class ASPOSE_TASKS_SHARED_CLASS
WorkingTime :
public System::Object
46 typedef System::Object BaseType;
48 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
52 friend class Aspose::Tasks::CalendarWorkingTimesForwardEnumerator;
53 friend class Aspose::Tasks::Recalculation::TimephasedDataCalculationUtil;
54 friend class Aspose::Tasks::CalendarDatesCalculator;
55 friend class Aspose::Tasks::DatesCalculator;
56 friend class Aspose::Tasks::TimephasedDataMaker;
64 ASPOSE_TASKS_SHARED_API System::DateTime
get_From()
const;
68 ASPOSE_TASKS_SHARED_API System::DateTime
get_To()
const;
75 ASPOSE_TASKS_SHARED_API
WorkingTime(System::DateTime fromTime, System::DateTime toTime);
90 ASPOSE_TASKS_SHARED_API
WorkingTime(System::TimeSpan fromTime, System::TimeSpan toTime);
105 ASPOSE_TASKS_SHARED_API
WorkingTime(int32_t fromHours, int32_t toHours);
112 ASPOSE_TASKS_SHARED_API
bool Equals(System::SharedPtr<System::Object> obj)
override;
121 ASPOSE_TASKS_SHARED_API
bool get_Is24Hour();
122 ASPOSE_TASKS_SHARED_API System::TimeSpan get_Work();
124 static ASPOSE_TASKS_SHARED_API System::SharedPtr<WorkingTime> CreatePrecise(System::TimeSpan from, System::TimeSpan to);
125 ASPOSE_TASKS_SHARED_API System::DateTime GetFromDate(System::DateTime date);
126 ASPOSE_TASKS_SHARED_API System::DateTime GetToDate(System::DateTime date);
127 ASPOSE_TASKS_SHARED_API System::TimeSpan GetIntersectSpan(
const System::SharedPtr<WorkingTime>& other);
128 ASPOSE_TASKS_SHARED_API System::TimeSpan GetIntersectSpan(System::DateTime fromNormalized, System::DateTime toNormalized);
129 ASPOSE_TASKS_SHARED_API
bool Contains(System::DateTime dateTime);
130 ASPOSE_TASKS_SHARED_API
bool ContainsNormalized(System::DateTime dateNormalized);
131 ASPOSE_TASKS_SHARED_API
bool IsEndTime(System::DateTime dateTime);
132 #ifdef ASPOSE_GET_SHARED_MEMBERS
133 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
139 static const int64_t TicksPerMinute;
140 static const int64_t HalfTicksPerMinute;
142 static System::DateTime& EndOfDay();
144 System::DateTime fromTime;
145 System::DateTime toTime;
147 System::String get_DebuggerDisplay();
149 static System::DateTime AlignTime(System::DateTime dt);
150 void SetFromTime(System::DateTime value);
151 void SetToTime(System::DateTime value);
Represents a calendar used in a project.
Definition: Calendar.h:294
Represents a collection of WorkingTimeCollection objects.
Definition: WorkingTimeCollection.h:76
bool Contains(const System::SharedPtr< WorkingTime > &item) const override
Checks if the specified element is in the List. Performs a linear O(n) search.
Represents a working time during a weekday.
Definition: WorkingTime.h:44
int32_t GetHashCode() const override
Returns a hash code value for the instance of the WorkingTime class.
WorkingTime(System::DateTime fromTime, System::DateTime toTime)
Initializes a new instance of the WorkingTime class with a interval with the specified start and fini...
WorkingTime(int32_t fromHours, int32_t toHours)
Initializes a new instance of the WorkingTime class with an interval item with the specified start an...
WorkingTime(System::TimeSpan fromTime, System::TimeSpan toTime)
Initializes a new instance of the WorkingTime class with an interval item with the specified start an...
bool Equals(System::SharedPtr< System::Object > obj) override
Checks that the objects are equal.
System::DateTime get_From() const
Gets the beginning of a working time.
System::DateTime get_To() const
Gets the end of a working time.