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);