Drizzled Public API Documentation

temporal.h File Reference
#include <drizzled/calendar.h>
#include <cassert>
#include <ostream>

Go to the source code of this file.

Classes

class  drizzled::Temporal
class  drizzled::Date
class  drizzled::Time
class  drizzled::DateTime
class  drizzled::Timestamp
class  drizzled::MicroTimestamp
class  drizzled::NanoTimestamp

Namespaces

namespace  drizzled
 

TODO: Rename this file - func.h is stupid.


Defines

#define DRIZZLE_MAX_SECONDS   59
#define DRIZZLE_MAX_SECONDS_WITH_LEAP   61
#define DRIZZLE_MAX_MINUTES   59
#define DRIZZLE_MAX_HOURS   23
#define DRIZZLE_MAX_DAYS   31
#define DRIZZLE_MAX_MONTHS   12
#define DRIZZLE_MAX_YEARS_SQL   9999
#define DRIZZLE_MAX_YEARS_EPOCH   2038
#define DRIZZLE_MIN_SECONDS   0
#define DRIZZLE_MIN_MINUTES   0
#define DRIZZLE_MIN_HOURS   0
#define DRIZZLE_MIN_DAYS   1
#define DRIZZLE_MIN_MONTHS   1
#define DRIZZLE_MIN_YEARS_SQL   1
#define DRIZZLE_MIN_YEARS_EPOCH   1970
#define DRIZZLE_SECONDS_IN_MINUTE   60
#define DRIZZLE_SECONDS_IN_HOUR   (60*60)
#define DRIZZLE_SECONDS_IN_DAY   (60*60*24)
#define DRIZZLE_NANOSECONDS_IN_MICROSECOND   1000
#define DRIZZLE_MAX_LENGTH_DATETIME_AS_STRING   40
#define DRIZZLE_YY_PART_YEAR   70

Functions

std::ostream & drizzled::operator<< (std::ostream &os, const Timestamp &subject)

Detailed Description

Defines the API for dealing with temporal data inside the server.

The Temporal class is the base class for all data of any temporal type. A number of derived classes define specialized classes representng various date, date-time, time, or timestamp types.

All Temporal derived classes are ValueObjects. That is to say that Temporal class instances are not part of the Item hierarchy and serve only to represent a time or date-related piece of data.

Note:

Low-level calendrical calculations are done via routines in the calendar.cc file.

See also:
drizzled/calendar.cc

Definition in file temporal.h.