DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
DaylightTime.h
Go to the documentation of this file.
1
5
6
#pragma once
7
8
#include "
Common.h
"
9
#include "
System/Object.h
"
10
#include "
System/TimeSpan.h
"
11
#include "
System/DateTimeOffset.h
"
12
13
namespace
DotNetDupe
{
14
namespace
System
{
15
21
class
DaylightTime
:
public
Object
{
22
public
:
27
DOTNETDUPE_API
DaylightTime
(
DateTimeOffset
start,
DateTimeOffset
end,
TimeSpan
delta);
28
31
DOTNETDUPE_API
DateTimeOffset
GetStart
()
const
;
32
35
DOTNETDUPE_API
DateTimeOffset
GetEnd
()
const
;
36
39
DOTNETDUPE_API
TimeSpan
GetDelta
()
const
;
40
41
private
:
42
DateTimeOffset
_start;
43
DateTimeOffset
_end;
44
TimeSpan
_delta;
45
};
46
47
}
48
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
DateTimeOffset.h
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
TimeSpan.h
Represents a time interval.
DotNetDupe::System::DateTimeOffset
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
Definition
DateTimeOffset.h:22
DotNetDupe::System::DaylightTime::GetDelta
TimeSpan GetDelta() const
Gets the time interval that represents the difference between standard time and daylight saving time.
Definition
DaylightTime.cpp:21
DotNetDupe::System::DaylightTime::DaylightTime
DaylightTime(DateTimeOffset start, DateTimeOffset end, TimeSpan delta)
Initializes a new instance of the DaylightTime class with specified start, end, and time delta.
Definition
DaylightTime.cpp:6
DotNetDupe::System::DaylightTime::GetEnd
DateTimeOffset GetEnd() const
Gets the date and time when the daylight saving period ends.
Definition
DaylightTime.cpp:16
DotNetDupe::System::DaylightTime::GetStart
DateTimeOffset GetStart() const
Gets the date and time when the daylight saving period begins.
Definition
DaylightTime.cpp:11
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::TimeSpan
Represents a time interval (duration of time or elapsed time) measured as a positive or negative numb...
Definition
TimeSpan.h:20
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
DaylightTime.h
Generated by
1.18.0