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

Function datetime_to_date

sql/sql_time.h:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 date_conv_mode_t fuzzydate);
61
62inline void datetime_to_date(MYSQL_TIME *ltime)
63{
64 DBUG_ASSERT(ltime->time_type == MYSQL_TIMESTAMP_DATE ||
65 ltime->time_type == MYSQL_TIMESTAMP_DATETIME);
66 DBUG_ASSERT(ltime->neg == 0);
67 ltime->second_part= ltime->hour= ltime->minute= ltime->second= 0;
68 ltime->time_type= MYSQL_TIMESTAMP_DATE;
69}
70inline void date_to_datetime(MYSQL_TIME *ltime)
71{
72 DBUG_ASSERT(ltime->time_type == MYSQL_TIMESTAMP_DATE ||

Callers 2

set_current_dateFunction · 0.85
DateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected