MCPcopy Create free account
hub / github.com/arkdb/inception / datetime_to_timeval

Function datetime_to_timeval

sql/sql_time.cc:742–748  ·  view source on GitHub ↗

Convert a datetime MYSQL_TIME representation to corresponding "struct timeval" value. Things like '0000-01-01', '2000-00-01', '2000-01-00' (i.e. incomplete date) return error. Things like '0000-00-00 10:30:30' or '0000-00-00 00:00:00.123456' (i.e. empty date with non-empty time) return error. Zero datetime '0000-00-00 00:00:00.000000' is allowed and is mapper to {tv_sec=0, tv_usec

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

get_timestampMethod · 0.85
get_timevalMethod · 0.85

Calls 3

check_dateFunction · 0.85
non_zero_dateFunction · 0.85

Tested by

no test coverage detected