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. */
| 1316 | @return The length of the result string. |
| 1317 | */ |
| 1318 | int 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 | /* |
no test coverage detected