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;