drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
temporal.h File Reference
#include <drizzled/calendar.h>
#include <drizzled/common_fwd.h>
#include <cassert>
#include <ostream>
Include dependency graph for temporal.h:
This graph shows which files directly or indirectly include this file:

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.

Macros

#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.

Macro Definition Documentation

◆ DRIZZLE_MAX_DAYS

#define DRIZZLE_MAX_DAYS   31

Definition at line 48 of file temporal.h.

◆ DRIZZLE_MAX_HOURS

#define DRIZZLE_MAX_HOURS   23

Definition at line 47 of file temporal.h.

◆ DRIZZLE_MAX_LENGTH_DATETIME_AS_STRING

#define DRIZZLE_MAX_LENGTH_DATETIME_AS_STRING   40

Definition at line 65 of file temporal.h.

◆ DRIZZLE_MAX_MINUTES

#define DRIZZLE_MAX_MINUTES   59

Definition at line 46 of file temporal.h.

◆ DRIZZLE_MAX_MONTHS

#define DRIZZLE_MAX_MONTHS   12

Definition at line 49 of file temporal.h.

◆ DRIZZLE_MAX_SECONDS

#define DRIZZLE_MAX_SECONDS   59

Definition at line 44 of file temporal.h.

◆ DRIZZLE_MAX_SECONDS_WITH_LEAP

#define DRIZZLE_MAX_SECONDS_WITH_LEAP   61

Definition at line 45 of file temporal.h.

◆ DRIZZLE_MAX_YEARS_EPOCH

#define DRIZZLE_MAX_YEARS_EPOCH   2038

Definition at line 51 of file temporal.h.

◆ DRIZZLE_MAX_YEARS_SQL

#define DRIZZLE_MAX_YEARS_SQL   9999

Definition at line 50 of file temporal.h.

◆ DRIZZLE_MIN_DAYS

#define DRIZZLE_MIN_DAYS   1

Definition at line 55 of file temporal.h.

◆ DRIZZLE_MIN_HOURS

#define DRIZZLE_MIN_HOURS   0

Definition at line 54 of file temporal.h.

◆ DRIZZLE_MIN_MINUTES

#define DRIZZLE_MIN_MINUTES   0

Definition at line 53 of file temporal.h.

◆ DRIZZLE_MIN_MONTHS

#define DRIZZLE_MIN_MONTHS   1

Definition at line 56 of file temporal.h.

◆ DRIZZLE_MIN_SECONDS

#define DRIZZLE_MIN_SECONDS   0

Definition at line 52 of file temporal.h.

◆ DRIZZLE_MIN_YEARS_EPOCH

#define DRIZZLE_MIN_YEARS_EPOCH   1970

Definition at line 58 of file temporal.h.

◆ DRIZZLE_MIN_YEARS_SQL

#define DRIZZLE_MIN_YEARS_SQL   1

Definition at line 57 of file temporal.h.

◆ DRIZZLE_NANOSECONDS_IN_MICROSECOND

#define DRIZZLE_NANOSECONDS_IN_MICROSECOND   1000

Definition at line 63 of file temporal.h.

◆ DRIZZLE_SECONDS_IN_DAY

#define DRIZZLE_SECONDS_IN_DAY   (60*60*24)

Definition at line 62 of file temporal.h.

◆ DRIZZLE_SECONDS_IN_HOUR

#define DRIZZLE_SECONDS_IN_HOUR   (60*60)

Definition at line 61 of file temporal.h.

◆ DRIZZLE_SECONDS_IN_MINUTE

#define DRIZZLE_SECONDS_IN_MINUTE   60

Definition at line 60 of file temporal.h.

◆ DRIZZLE_YY_PART_YEAR

#define DRIZZLE_YY_PART_YEAR   70

Definition at line 67 of file temporal.h.