MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
item_timefunc.cc File Reference

This file defines all time functions. More...

#include "sql_priv.h"
#include "sql_class.h"
#include "set_var.h"
#include "sql_locale.h"
#include "strfunc.h"
#include "sql_time.h"
#include "tztime.h"
#include <m_ctype.h>
#include <time.h>
Include dependency graph for item_timefunc.cc:

Go to the source code of this file.

Macros

#define MAX_DAY_NUMBER   3652424L

Functions

bool make_date_time (DATE_TIME_FORMAT *format, MYSQL_TIME *l_time, timestamp_type type, String *str)
uint week_mode (uint mode)
bool get_interval_value (Item *args, interval_type int_type, String *str_value, INTERVAL *interval)

Detailed Description

This file defines all time functions.

Todo:
Move month and days to language files

Definition in file item_timefunc.cc.

Macro Definition Documentation

#define MAX_DAY_NUMBER   3652424L

Day number for Dec 31st, 9999.

Definition at line 57 of file item_timefunc.cc.

Function Documentation

bool get_interval_value ( Item args,
interval_type  int_type,
String str_value,
INTERVAL interval 
)

Convert a string to a interval value.

To make code easy, allow interval objects without separators.

Definition at line 1521 of file item_timefunc.cc.

bool make_date_time ( DATE_TIME_FORMAT format,
MYSQL_TIME l_time,
timestamp_type  type,
String str 
)

Create a formated date/time value in a string.

Definition at line 521 of file item_timefunc.cc.