DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DotNetDupe::System::DaylightTime Class Reference

Defines the period of daylight saving time for a region. More...

#include <DaylightTime.h>

Inheritance diagram for DotNetDupe::System::DaylightTime:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ DaylightTime()

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.

Parameters
startThe date and time when the daylight saving period begins.
endThe date and time when the daylight saving period ends.
deltaThe 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.

Member Function Documentation

◆ GetDelta()

TimeSpan DotNetDupe::System::DaylightTime::GetDelta ( ) const

Gets the time interval that represents the difference between standard time and daylight saving time.

Returns
The adjustment TimeSpan.

Return time offset delta applied during daylight saving.

Definition at line 21 of file DaylightTime.cpp.

Referenced by DotNetDupe::System::TimeZone::IsDaylightSavingTime().

◆ GetEnd()

DateTimeOffset DotNetDupe::System::DaylightTime::GetEnd ( ) const

Gets the date and time when the daylight saving period ends.

Returns
The ending DateTimeOffset.

Return ending DateTimeOffset of daylight saving transition.

Definition at line 16 of file DaylightTime.cpp.

Referenced by DotNetDupe::System::TimeZone::IsDaylightSavingTime().

◆ GetStart()

DateTimeOffset DotNetDupe::System::DaylightTime::GetStart ( ) const

Gets the date and time when the daylight saving period begins.

Returns
The starting DateTimeOffset.

Return starting DateTimeOffset of daylight saving transition.

Definition at line 11 of file DaylightTime.cpp.

Referenced by DotNetDupe::System::TimeZone::IsDaylightSavingTime().


The documentation for this class was generated from the following files: