MCPcopy Create free account
hub / github.com/apache/impala / TruncMinute

Function TruncMinute

be/src/exprs/udf-builtins.cc:251–254  ·  view source on GitHub ↗

Truncate seconds and parts of seconds

Source from the content-addressed store, hash-verified

249
250// Truncate seconds and parts of seconds
251TimestampValue TruncMinute(const date& orig_date, const time_duration& orig_time) {
252 time_duration new_time(orig_time.hours(), orig_time.minutes(), 0, 0);
253 return TimestampValue(orig_date, new_time);
254}
255
256// Truncate parts of seconds
257TimestampValue TruncSecond(const date& orig_date, const time_duration& orig_time) {

Callers 1

DoTruncFunction · 0.85

Calls 1

TimestampValueClass · 0.70

Tested by

no test coverage detected