/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in * compliance with the NPL. You may obtain a copy of the NPL at * http://www.mozilla.org/NPL/ * * Software distributed under the NPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL * for the specific language governing rights and limitations under the * NPL. * * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */ #ifndef nsIDateTime_h___ #define nsIDateTime_h___ #include "nsISupports.h" #include "nsString.h" //32385f60-1cca-11d2-9246-00805f8a7ab6 #define NS_IDATETIME_IID \ { 0x32385f60, 0x1cca, 0x11d2, \ { 0x92, 0x46, 0x00, 0x80, 0x5f, 0x8a, 0x7a, 0xb6 } } class nsIDateTime : public nsISupports { public: NS_IMETHOD Init() = 0 ; NS_IMETHOD_(PRUint32) GetYear() = 0; NS_IMETHOD_(PRUint32) GetMonth() = 0; NS_IMETHOD_(PRUint32) GetDay() = 0; NS_IMETHOD_(PRUint32) GetHour() = 0; NS_IMETHOD_(PRUint32) GetMinute() = 0; NS_IMETHOD_(PRUint32) GetSecond() = 0; NS_IMETHOD SetYear(PRUint32 aYear) = 0; NS_IMETHOD SetMonth(PRUint32 aMonth) = 0; NS_IMETHOD SetDay(PRUint32 aDay) = 0; NS_IMETHOD SetHour(PRUint32 aHour) = 0; NS_IMETHOD SetMinute(PRUint32 aMinute) = 0; NS_IMETHOD SetSecond(PRUint32 aSecond) = 0; NS_IMETHOD IncrementYear(PRUint32 aYear) = 0; NS_IMETHOD IncrementMonth(PRUint32 aMonth) = 0; NS_IMETHOD IncrementDay(PRUint32 aDay) = 0; NS_IMETHOD IncrementHour(PRUint32 aHour) = 0; NS_IMETHOD IncrementMinute(PRUint32 aMinute) = 0; NS_IMETHOD IncrementSecond(PRUint32 aSecond) = 0; NS_IMETHOD DecrementYear(PRUint32 aYear) = 0; NS_IMETHOD DecrementMonth(PRUint32 aMonth) = 0; NS_IMETHOD DecrementDay(PRUint32 aDay) = 0; NS_IMETHOD DecrementHour(PRUint32 aHour) = 0; NS_IMETHOD DecrementMinute(PRUint32 aMinute) = 0; NS_IMETHOD DecrementSecond(PRUint32 aSecond) = 0; NS_IMETHOD strftime(nsString& aPattern, nsString ** aString) = 0; NS_IMETHOD_(nsIDateTime *) Copy() = 0; }; #endif /* nsIDateTime_h___ */