33 #include "dcmtk/config/osconfig.h" 35 #include "dcmtk/ofstd/ofstring.h" 36 #include "dcmtk/ofstd/ofdate.h" 37 #include "dcmtk/ofstd/oftime.h" 78 const unsigned int month,
79 const unsigned int day,
80 const unsigned int hour,
81 const unsigned int minute,
83 const double timeZone = 0);
116 virtual void clear();
122 virtual OFBool
isValid()
const;
136 const unsigned int month,
137 const unsigned int day,
138 const unsigned int hour,
139 const unsigned int minute,
141 const double timeZone = 0);
209 const OFBool showSeconds = OFTrue,
210 const OFBool showFraction = OFFalse,
211 const OFBool showTimeZone = OFFalse,
212 const OFBool showDelimiter = OFTrue)
const;
231 const OFBool showSeconds ,
232 const OFBool showFraction ,
233 const OFBool showTimeZone ,
234 const OFBool showDelimiter ,
235 const OFString &dateTimeSeparator )
const;
261 STD_NAMESPACE ostream& operator<<(STD_NAMESPACE ostream& stream,
const OFDateTime &dateTime);
OFDateTime()
default constructor.
OFBool setISOFormattedDateTime(const OFString &formattedDateTime)
set the date/time value to the given ISO formatted date/time string.
virtual OFBool operator!=(const OFDateTime &dateTime) const
comparison operator (unequal) Please note that the time values are first transformed to the Coordinat...
This class provides a collection of time functions.
OFDate Date
currently stored date value
OFTime Time
currently stored time value
OFBool setTime(const OFTime &timeVal)
set the time component to the specified time.
OFBool setCurrentDateTime()
set the date and time value to the current system date and time.
virtual OFDateTime & operator=(const OFDateTime &dateTime)
assignment operator
virtual OFBool isValid() const
check whether the currently stored date and time value is valid.
const OFDate & getDate() const
get the current date component
virtual void clear()
reset the date/time value.
This class provides a collection of date functions.
This class is a combination of OFDate and OFTime.
const OFTime & getTime() const
get the current time component
static OFDateTime getCurrentDateTime()
get the current system date and time
virtual OFBool operator==(const OFDateTime &dateTime) const
comparison operator (equal).
OFBool getISOFormattedDateTime(OFString &formattedDateTime, const OFBool showSeconds=OFTrue, const OFBool showFraction=OFFalse, const OFBool showTimeZone=OFFalse, const OFBool showDelimiter=OFTrue) const
get the current date/time value in ISO format.
a simple string class that implements a subset of std::string.
virtual ~OFDateTime()
destructor
OFBool setDate(const OFDate &dateVal)
set the date component to the specified date.
OFBool setDateTime(const unsigned int year, const unsigned int month, const unsigned int day, const unsigned int hour, const unsigned int minute, const double second, const double timeZone=0)
set the date/time value.