MCPcopy
hub / github.com/google/mangle / Time

Method Time

ast/temporal.go:215–220  ·  view source on GitHub ↗

Time returns the time.Time value for a TimestampBound. Returns zero time for non-timestamp bounds.

()

Source from the content-addressed store, hash-verified

213// Time returns the time.Time value for a TimestampBound.
214// Returns zero time for non-timestamp bounds.
215func (tb TemporalBound) Time() time.Time {
216 if tb.Type != TimestampBound {
217 return time.Time{}
218 }
219 return time.Unix(0, tb.Timestamp)
220}
221
222// Date creates a time.Time for the given year, month, and day at midnight.
223// Uses the default timezone (UTC unless changed via SetDefaultTimezone).

Callers 5

TestDateIntervalFunction · 0.80
TestTimeIntervalFunction · 0.80
verifyIntervalFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestDateIntervalFunction · 0.64
TestTimeIntervalFunction · 0.64
verifyIntervalFunction · 0.64