2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* DaylightTime.h *
|
|
|
|
* *
|
|
|
|
* XFX System::Globalization::DaylightTime class definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _SYSTEM_GLOBALIZATION_DAYLIGHTTIME_
|
|
|
|
#define _SYSTEM_GLOBALIZATION_DAYLIGHTTIME_
|
|
|
|
|
|
|
|
#include <System/DateTime.h>
|
|
|
|
#include <System/TimeSpan.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Globalization
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Defines the period of daylight saving time.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class DaylightTime : public IEquatable<DaylightTime>, public Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
const TimeSpan Delta;
|
|
|
|
const DateTime End;
|
|
|
|
const DateTime Start;
|
|
|
|
|
|
|
|
DaylightTime(const DateTime start, const DateTime end, const TimeSpan delta);
|
|
|
|
DaylightTime(const DaylightTime &obj);
|
|
|
|
|
|
|
|
bool Equals(const DaylightTime other) const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator !=(const DaylightTime& right) const;
|
|
|
|
bool operator ==(const DaylightTime& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_GLOBALIZATION_DAYLIGHTTIME_
|