2010-12-04 16:14:34 +00:00
|
|
|
#ifndef _DAYLIGHTTIME_
|
|
|
|
#define _DAYLIGHTTIME_
|
|
|
|
|
|
|
|
#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.
|
|
|
|
class DaylightTime : public IEquatable<DaylightTime>, virtual 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;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
bool operator !=(const DaylightTime right) const;
|
|
|
|
bool operator ==(const DaylightTime right) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_DAYLIGHTTIME_
|