DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
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"
13#include "System/DaylightTime.h"
14
15namespace DotNetDupe {
16 namespace System {
17
23 class TimeZone : public Object {
24 public:
28
32
36
41
46
50 DOTNETDUPE_API virtual bool IsDaylightSavingTime(const DateTimeOffset& time);
51
56
61
66 DOTNETDUPE_API static bool IsDaylightSavingTime(const DateTimeOffset& time, const DaylightTime& daylightTimes);
67 };
68
69 }
70}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
Defines the period of daylight saving time.
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Represents a time interval.
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
Defines the period of daylight saving time for a region.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74
Represents a time interval (duration of time or elapsed time) measured as a positive or negative numb...
Definition TimeSpan.h:20
Represents a time zone and handles time zone conversions.
Definition TimeZone.h:23
virtual DaylightTime GetDaylightChanges(int year)=0
Returns the daylight saving time period for a particular year.
virtual String GetStandardName() const =0
Gets the standard time zone name.
static TimeZone * GetCurrentTimeZone()
Gets the time zone of the current computer.
Definition TimeZone.cpp:71
virtual DateTimeOffset ToLocalTime(const DateTimeOffset &time)
Returns the local time that corresponds to a specified date and time value.
Definition TimeZone.cpp:88
virtual String GetDaylightName() const =0
Gets the daylight saving time zone name.
virtual DateTimeOffset ToUniversalTime(const DateTimeOffset &time)
Returns the Coordinated Universal Time (UTC) that corresponds to a specified time.
Definition TimeZone.cpp:93
virtual TimeSpan GetUtcOffset(const DateTimeOffset &time)=0
Returns the Coordinated Universal Time (UTC) offset for the specified time.
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