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

Function DateInterval

ast/temporal.go:273–278  ·  view source on GitHub ↗

DateInterval creates an interval from two dates (year, month, day). This is the most concise way to create a date-based interval.

(startYear int, startMonth time.Month, startDay int, endYear int, endMonth time.Month, endDay int)

Source from the content-addressed store, hash-verified

271// DateInterval creates an interval from two dates (year, month, day).
272// This is the most concise way to create a date-based interval.
273func DateInterval(startYear int, startMonth time.Month, startDay int, endYear int, endMonth time.Month, endDay int) Interval {
274 return TimeInterval(
275 Date(startYear, startMonth, startDay),
276 Date(endYear, endMonth, endDay),
277 )
278}
279
280// String returns a string representation of the temporal bound.
281func (tb TemporalBound) String() string {

Callers 2

TestDateIntervalFunction · 0.85

Calls 2

TimeIntervalFunction · 0.85
DateFunction · 0.85

Tested by 2

TestDateIntervalFunction · 0.68