MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_datetime_to_str

Function my_datetime_to_str

sql-common/my_time.c:1318–1326  ·  view source on GitHub ↗

Print a datetime value with an optional fractional part. @l_time The MYSQL_TIME value to print. @to OUT The string pointer to print at. @return The length of the result string. */

Source from the content-addressed store, hash-verified

1316 @return The length of the result string.
1317*/
1318int my_datetime_to_str(const MYSQL_TIME *l_time, char *to, uint dec)
1319{
1320 int len= TIME_to_datetime_str(to, l_time);
1321 if (dec)
1322 len+= my_useconds_to_str(to + len, l_time->second_part, dec);
1323 else
1324 to[len]= '\0';
1325 return len;
1326}
1327
1328
1329/*

Callers 3

my_TIME_to_strFunction · 0.85
make_datetimeFunction · 0.85
storeMethod · 0.85

Calls 2

TIME_to_datetime_strFunction · 0.85
my_useconds_to_strFunction · 0.85

Tested by

no test coverage detected