CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
daylight_time.h
1
2#pragma once
3
4#include <system/object.h>
5#include <system/date_time.h>
6#include <system/timespan.h>
7
8namespace System { namespace Globalization {
9
10class DaylightTime;
13
18class ASPOSECPP_SHARED_CLASS DaylightTime : public virtual Object
19{
21 RTTI_INFO(System::Globalization::DaylightTime, ::System::BaseTypesInfo<System::Object>)
22
23public:
28 ASPOSECPP_SHARED_API DaylightTime(DateTime start, DateTime end, TimeSpan delta);
31 ASPOSECPP_SHARED_API DateTime get_Start() const;
34 ASPOSECPP_SHARED_API DateTime get_End() const;
37 ASPOSECPP_SHARED_API TimeSpan get_Delta() const;
38
39private:
41 const DateTime m_start;
43 const DateTime m_end;
45 const TimeSpan m_delta;
46};
47
48}} // namespace System::Globalization
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
Period of daylight saving time. Objects of this class should only be allocated using System::MakeObje...
Definition: daylight_time.h:19
DaylightTime(DateTime start, DateTime end, TimeSpan delta)
RTTI information.
DateTime get_End() const
Gets date and time when daylight saving time ends.
TimeSpan get_Delta() const
Gets difference between standard time and daylight saving time.
DateTime get_Start() const
Gets date and time when daylight saving time begins.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Represents a time interval. This type should be allocated on stack and passed to functions by value o...
Definition: timespan.h:59
SharedPtr< DaylightTime > DaylightTimePtr
DaylightTime pointer type.
Definition: daylight_time.h:12
Definition: db_command.h:9