# datetime.h File Reference

Declares classes to add SQL-compatible date and time types to C++'s type system. More...

`#include "common.h"`
`#include "comparable.h"`
`#include <string>`
`#include <iostream>`

Go to the source code of this file.

## Namespaces

namespace | mysqlpp

## Classes

class | mysqlpp::DateTime
| C++ form of SQL's DATETIME type. More...
class | mysqlpp::Date
| C++ form of SQL's DATE type. More...
class | mysqlpp::Time
| C++ form of SQL's TIME type. More...

## Functions

DateTime | mysqlpp::NOW ()
| Returns a DateTime object that, when inserted into query will yield a SQL "NOW()" function call.
std::ostream & | mysqlpp::operator<< (std::ostream &os, const DateTime &dt)
| Inserts a DateTime object into a C++ stream in a SQL-compatible format.
std::ostream & | mysqlpp::operator<< (std::ostream &os, const Date &d)
| Inserts a Date object into a C++ stream.
std::ostream & | mysqlpp::operator<< (std::ostream &os, const Time &t)
| Inserts a Time object into a C++ stream in a SQL-compatible format.

## Detailed Description

Declares classes to add SQL-compatible date and time types to C++'s type system.