2012-09-28 20:36:02 +00:00
|
|
|
#ifndef _SYSTEM_GLOBALIZATION_DAYLIGHTTIME_
|
|
|
|
#define _SYSTEM_GLOBALIZATION_DAYLIGHTTIME_
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
#include <System/DateTime.h>
|
|
|
|
#include <System/TimeSpan.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Globalization
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
// Defines the period of daylight saving time.
|
2012-09-28 20:36:02 +00:00
|
|
|
class DaylightTime : public IEquatable<DaylightTime>, public Object
|
2010-12-04 16:14:34 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-03-29 22:02:43 +00:00
|
|
|
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;
|
2012-09-28 20:36:02 +00:00
|
|
|
int GetType() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
bool operator !=(const DaylightTime& right) const;
|
|
|
|
bool operator ==(const DaylightTime& right) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
#endif //_SYSTEM_GLOBALIZATION_DAYLIGHTTIME_
|