22 #include <drizzled/function/time/sysdate_local.h>
23 #include <drizzled/session.h>
24 #include <drizzled/field.h>
25 #include <drizzled/system_variables.h>
35 now_time.store(time(NULL));
44 size_t length= type::Time::MAX_STRING_LENGTH;
45 ltime.convert(buff, length);
47 str_value.set(buff, length, &my_charset_bin);
71 return int64_t2double(tmp);
75 void Item_func_sysdate_local::fix_length_and_dec()
78 collation.set(&my_charset_bin);
91 int Item_func_sysdate_local::save_in_field(
Field *to,
bool )
95 to->
store_time(ltime, type::DRIZZLE_TIMESTAMP_DATETIME);
virtual int store_time(type::Time <ime, type::timestamp_t t_type)
TODO: Rename this file - func.h is stupid.
String * val_str(String *str)
static const int MAX_STRING_LENGTH
void store_now_in_TIME(type::Time &now_time)
bool get_date(type::Time &res, uint32_t fuzzy_date)