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

Function gmtime_mysql

storage/connect/value.cpp:2448–2454  ·  view source on GitHub ↗

Added by Alexander Barkov

Source from the content-addressed store, hash-verified

2446
2447// Added by Alexander Barkov
2448static struct tm *gmtime_mysql(const time_t *timep, struct tm *tm)
2449{
2450 MYSQL_TIME ltime;
2451 thd_gmt_sec_to_TIME(current_thd, &ltime, (my_time_t) *timep);
2452 TIME_to_localtime(tm, &ltime);
2453 return tm;
2454} // end of gmtime_mysql
2455
2456/***********************************************************************/
2457/* GetGmTime: returns a pointer to a static tm structure obtained */

Callers 1

GetGmTimeMethod · 0.85

Calls 2

thd_gmt_sec_to_TIMEFunction · 0.85
TIME_to_localtimeFunction · 0.85

Tested by

no test coverage detected