|
DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
|
Defines the period of daylight saving time for a region. More...
#include <DaylightTime.h>
Public Member Functions | |
| DaylightTime (DateTimeOffset start, DateTimeOffset end, TimeSpan delta) | |
| Initializes a new instance of the DaylightTime class with specified start, end, and time delta. | |
| TimeSpan | GetDelta () const |
| Gets the time interval that represents the difference between standard time and daylight saving time. | |
| DateTimeOffset | GetEnd () const |
| Gets the date and time when the daylight saving period ends. | |
| DateTimeOffset | GetStart () const |
| Gets the date and time when the daylight saving period begins. | |
| Public Member Functions inherited from DotNetDupe::System::Object | |
| virtual | ~Object ()=default |
| Virtual destructor ensuring polymorphic cleanup. | |
| virtual bool | Equals (const Object &obj) const |
| Determines whether the specified Object is equal to the current Object. | |
| virtual int | GetHashCode () const |
| Serves as the default hash function. | |
| bool | operator== (const Object &obj) const |
| Determines reference equality between two objects. | |
| char * | ToStringA () const |
| Returns narrow-character string representation. | |
| wchar_t * | ToStringW () const |
| Returns wide-character string representation. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from DotNetDupe::System::Object | |
| static bool | Equals (const Object &obj1, const Object &obj2) |
| Static helper determining whether two object instances are equal. | |
Defines the period of daylight saving time for a region.
Modeled after .NET System.Globalization.DaylightTime. Encapsulates start, end, and delta duration of daylight saving adjustments.
Definition at line 21 of file DaylightTime.h.
| DotNetDupe::System::DaylightTime::DaylightTime | ( | DateTimeOffset | start, |
| DateTimeOffset | end, | ||
| TimeSpan | delta ) |
Initializes a new instance of the DaylightTime class with specified start, end, and time delta.
| start | The date and time when the daylight saving period begins. |
| end | The date and time when the daylight saving period ends. |
| delta | The difference between standard time and daylight saving time. |
Initialize DaylightTime instance with transition start, end, and offset delta.
Definition at line 6 of file DaylightTime.cpp.
| TimeSpan DotNetDupe::System::DaylightTime::GetDelta | ( | ) | const |
Gets the time interval that represents the difference between standard time and daylight saving time.
Return time offset delta applied during daylight saving.
Definition at line 21 of file DaylightTime.cpp.
Referenced by DotNetDupe::System::TimeZone::IsDaylightSavingTime().
| DateTimeOffset DotNetDupe::System::DaylightTime::GetEnd | ( | ) | const |
Gets the date and time when the daylight saving period ends.
Return ending DateTimeOffset of daylight saving transition.
Definition at line 16 of file DaylightTime.cpp.
Referenced by DotNetDupe::System::TimeZone::IsDaylightSavingTime().
| DateTimeOffset DotNetDupe::System::DaylightTime::GetStart | ( | ) | const |
Gets the date and time when the daylight saving period begins.
Return starting DateTimeOffset of daylight saving transition.
Definition at line 11 of file DaylightTime.cpp.
Referenced by DotNetDupe::System::TimeZone::IsDaylightSavingTime().