22 #include <drizzled/function/time/curdate.h>
24 #include <drizzled/session.h>
25 #include <drizzled/session/times.h>
26 #include <drizzled/current_session.h>
33 collation.set(&my_charset_bin);
37 store_now_in_TIME(<ime);
40 ltime.hour= ltime.minute= ltime.second= 0;
41 ltime.time_type= type::DRIZZLE_TIMESTAMP_DATE;
58 (void) cached_temporal.
from_time_t(current_session->times.getCurrentTimestampEpoch());
60 now_time->year= cached_temporal.
years();
61 now_time->month= cached_temporal.
months();
62 now_time->day= cached_temporal.
days();
66 now_time->second_part= 0;
75 (void) cached_temporal.
from_time_t(current_session->times.getCurrentTimestampEpoch());
77 now_time->year= cached_temporal.
years();
78 now_time->month= cached_temporal.
months();
79 now_time->day= cached_temporal.
days();
83 now_time->second_part= 0;
bool get_temporal(Date &temporal)
TODO: Rename this file - func.h is stupid.
void store_now_in_TIME(type::Time *now_time)
void set_years(const uint32_t year)
void set_days(const uint32_t day)
virtual bool from_time_t(const time_t from)
void fix_length_and_dec()
static const int MAX_STRING_LENGTH
void set_months(const uint32_t month)
void store_now_in_TIME(type::Time *now_time)