DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
TimeZone.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/String.h
"
11
#include "
System/TimeSpan.h
"
12
#include "
System/DateTimeOffset.h
"
13
#include "
System/DaylightTime.h
"
14
15
namespace
DotNetDupe
{
16
namespace
System
{
17
23
class
TimeZone
:
public
Object
{
24
public
:
27
DOTNETDUPE_API
virtual
String
GetDaylightName
()
const
= 0;
28
31
DOTNETDUPE_API
virtual
String
GetStandardName
()
const
= 0;
32
35
DOTNETDUPE_API
static
TimeZone
*
GetCurrentTimeZone
();
36
40
DOTNETDUPE_API
virtual
DaylightTime
GetDaylightChanges
(
int
year) = 0;
41
45
DOTNETDUPE_API
virtual
TimeSpan
GetUtcOffset
(
const
DateTimeOffset
& time) = 0;
46
50
DOTNETDUPE_API
virtual
bool
IsDaylightSavingTime
(
const
DateTimeOffset
& time);
51
55
DOTNETDUPE_API
virtual
DateTimeOffset
ToLocalTime
(
const
DateTimeOffset
& time);
56
60
DOTNETDUPE_API
virtual
DateTimeOffset
ToUniversalTime
(
const
DateTimeOffset
& time);
61
66
DOTNETDUPE_API
static
bool
IsDaylightSavingTime
(
const
DateTimeOffset
& time,
const
DaylightTime
& daylightTimes);
67
};
68
69
}
70
}
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...
DaylightTime.h
Defines the period of daylight saving time.
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
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
Defines the period of daylight saving time for a region.
Definition
DaylightTime.h:21
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
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::TimeZone
Represents a time zone and handles time zone conversions.
Definition
TimeZone.h:23
DotNetDupe::System::TimeZone::GetDaylightChanges
virtual DaylightTime GetDaylightChanges(int year)=0
Returns the daylight saving time period for a particular year.
DotNetDupe::System::TimeZone::GetStandardName
virtual String GetStandardName() const =0
Gets the standard time zone name.
DotNetDupe::System::TimeZone::GetCurrentTimeZone
static TimeZone * GetCurrentTimeZone()
Gets the time zone of the current computer.
Definition
TimeZone.cpp:71
DotNetDupe::System::TimeZone::ToLocalTime
virtual DateTimeOffset ToLocalTime(const DateTimeOffset &time)
Returns the local time that corresponds to a specified date and time value.
Definition
TimeZone.cpp:88
DotNetDupe::System::TimeZone::GetDaylightName
virtual String GetDaylightName() const =0
Gets the daylight saving time zone name.
DotNetDupe::System::TimeZone::ToUniversalTime
virtual DateTimeOffset ToUniversalTime(const DateTimeOffset &time)
Returns the Coordinated Universal Time (UTC) that corresponds to a specified time.
Definition
TimeZone.cpp:93
DotNetDupe::System::TimeZone::GetUtcOffset
virtual TimeSpan GetUtcOffset(const DateTimeOffset &time)=0
Returns the Coordinated Universal Time (UTC) offset for the specified time.
DotNetDupe::System::TimeZone::IsDaylightSavingTime
virtual bool IsDaylightSavingTime(const DateTimeOffset &time)
Returns a value indicating whether the specified date and time is within a daylight saving time perio...
Definition
TimeZone.cpp:77
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
TimeZone.h
Generated by
1.18.0