MCPcopy Create free account
hub / github.com/MariaDB/server / set_current_date

Function set_current_date

sql/sql_time.cc:964–969  ·  view source on GitHub ↗

Get current date in DATE format */

Source from the content-addressed store, hash-verified

962 Get current date in DATE format
963*/
964void set_current_date(THD *thd, MYSQL_TIME *to)
965{
966 thd->variables.time_zone->gmt_sec_to_TIME(to, thd->query_start());
967 thd->used|= THD::TIME_ZONE_USED;
968 datetime_to_date(to);
969}
970
971
972/**

Callers 3

time_to_datetimeFunction · 0.85
set_curdaysMethod · 0.85

Calls 3

datetime_to_dateFunction · 0.85
gmt_sec_to_TIMEMethod · 0.80
query_startMethod · 0.80

Tested by

no test coverage detected