|
|
|
#include "ocldef.h"
Members
Construction
CRDate();
CRDate(unsigned year, unsigned month, unsigned day, unsigned hour = 0, unsigned minute = 0, unsigned second = 0);
Attributes
unsigned year() const;
void setYear(unsigned year);
unsigned month() const;
void setMonth(unsigned month);
unsigned day() const;
void setDay(unsigned day);
unsigned hour() const;
void setHour(unsigned hour);
unsigned minute() const;
void setMinute(unsigned minute);
unsigned second() const;
void setSecond(unsigned second);
unsigned dayOfWeek();
Methods
bool operator==(const CRDate& value) const;
CRString format(const char* format = NULL) const;
void now();
static CRString dateFormat();
static void setDateFormat(const CRString& value);
Description
CRDate represents date and time value. You can create CRDate object yourself or get it by getDate function of CRField or OraParam class. Use member functions to access to part of date and time such as day, month, minute and others. Use format function to convert date to string.
See Also
CRValue, CRString
Classes | OCL | Index