33 #include "dcmtk/config/osconfig.h"
36 #ifdef HAVE_SYS_TYPES_H
37 # include <sys/types.h>
41 #include "dcmtk/ofstd/ofstring.h"
42 #include "dcmtk/ofstd/ofstream.h"
74 OFDate(
const unsigned int year,
75 const unsigned int month,
76 const unsigned int day);
131 virtual void clear();
139 virtual OFBool
isValid()
const;
148 OFBool
setDate(
const unsigned int year,
149 const unsigned int month,
150 const unsigned int day);
157 OFBool
setYear(
const unsigned int year);
164 OFBool
setMonth(
const unsigned int month);
171 OFBool
setDay(
const unsigned int day);
201 unsigned int getDay()
const;
211 const OFBool showDelimiter = OFTrue)
const;
243 const unsigned int month,
244 const unsigned int day);
266 STD_NAMESPACE ostream& operator<<(STD_NAMESPACE ostream& stream,
const OFDate &dateVal);
virtual OFBool isValid() const
check whether the currently stored date value is valid.
OFBool setISOFormattedDate(const OFString &formattedDate)
set the date value to the given ISO formatted date string.
virtual OFBool operator!=(const OFDate &dateVal) const
comparison operator (unequal)
OFBool setDate(const unsigned int year, const unsigned int month, const unsigned int day)
set the date value to the specified date.
unsigned int getDay() const
get the currently stored day value
unsigned int getMonth() const
get the currently stored month value
OFBool setCurrentDate()
set the date value to the current system date.
unsigned int Month
currently stored month value
virtual OFDate & operator=(const OFDate &dateVal)
assignment operator
virtual OFBool operator<(const OFDate &dateVal) const
comparison operator (less than)
virtual OFBool operator>=(const OFDate &dateVal) const
comparison operator (greater than or equal)
OFBool getISOFormattedDate(OFString &formattedDate, const OFBool showDelimiter=OFTrue) const
get the current date value in ISO format.
OFDate()
default constructor.
virtual ~OFDate()
destructor
static OFBool isDateValid(const unsigned int year, const unsigned int month, const unsigned int day)
check whether the given date is valid.
OFBool setYear(const unsigned int year)
set the date value to the specified year.
OFBool setDay(const unsigned int day)
set the date value to the specified day.
This class provides a collection of date functions.
virtual OFBool operator==(const OFDate &dateVal) const
comparison operator (equal)
This class is a combination of OFDate and OFTime.
virtual void clear()
reset the date value.
unsigned int Day
currently stored day value
static OFDate getCurrentDate()
get the current system date
unsigned int Year
currently stored year value
unsigned int getYear() const
get the currently stored year value
a simple string class that implements a subset of std::string.
OFBool setMonth(const unsigned int month)
set the date value to the specified month.
virtual OFBool operator<=(const OFDate &dateVal) const
comparison operator (less than or equal)
virtual OFBool operator>(const OFDate &dateVal) const
comparison operator (greater than)