My Project
Defines | Functions
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>

Defines

#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

Define Documentation

#define MAX_DAY_NUMBER   3652424L

Day number for Dec 31st, 9999.


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.

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines