2010-12-04 16:14:34 +00:00
|
|
|
#ifndef _SYSTEM_GLOBALIZATION_CALENDAR_
|
|
|
|
#define _SYSTEM_GLOBALIZATION_CALENDAR_
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
#include <System/Object.h>
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
2012-09-28 20:36:02 +00:00
|
|
|
struct DateTime;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
namespace Globalization
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
// Represents time in divisions, such as weeks, months, and years.
|
2012-09-28 20:36:02 +00:00
|
|
|
class Calendar : public Object
|
2010-12-04 16:14:34 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
DateTime AddDays(DateTime time, int days);
|
|
|
|
DateTime AddHours(DateTime time, int hours);
|
|
|
|
DateTime AddMilliseconds(DateTime time, double milliseconds);
|
|
|
|
DateTime AddMinutes(DateTime time, int minutes);
|
|
|
|
DateTime AddMonths(DateTime time, int months);
|
2012-09-28 20:36:02 +00:00
|
|
|
int GetType() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_GLOBALIZATION_CALENDAR_
|