MCPcopy Create free account

hub / github.com/SaidinWoT/timespan / functions

Functions53 in github.com/SaidinWoT/timespan

↓ 10 callersMethodEqual
Equal reports whether s and r represent the same time intervals, ignoring the locations of the times.
timespan.go:81
↓ 9 callersMethodBefore
Before reports whether s ends before t.
timespan.go:52
↓ 9 callersMethodFollows
Follows reports whether s begins after or at the end of r.
timespan.go:86
↓ 9 callersFunctionNew
New creates a new span with the given start instant and duration.
timespan.go:18
↓ 9 callersMethodPrecedes
Precedes reports whether s ends before or at the start of r.
timespan.go:148
↓ 8 callersMethodAfter
After reports whether s begins after t.
timespan.go:47
↓ 7 callersMethodContainsTime
ContainsTime reports whether t is within s.
timespan.go:62
↓ 7 callersMethodDuration
Duration returns the length of time represented by s.
timespan.go:42
↓ 6 callersMethodBorders
Borders reports whether s and r are contiguous time intervals.
timespan.go:57
↓ 6 callersMethodContains
Contains reports whether r is entirely within s.
timespan.go:67
↓ 6 callersMethodIntersection
Intersection returns both a span corresponding to the non-zero overlap of s and r and a bool indicating whether such an overlap existed. If s and r do
timespan.go:105
↓ 5 callersMethodEncompass
Encompass returns the minimum span that fully contains both r and s.
timespan.go:72
↓ 5 callersMethodGap
Gap returns a span corresponding to the period between s and r. If s and r have a non-zero overlap, a zero span is returned.
timespan.go:92
↓ 4 callersMethodEnd
End returns the time instant at the end of s.
timespan.go:37
↓ 4 callersMethodOffset
Offset returns s with its start time offset by d. It is equivalent to Newspan(s.Start().Add(d), s.Duration()).
timespan.go:123
↓ 4 callersMethodOffsetDate
OffsetDate returns s with its start time offset by the given years, months, and days. It is equivalent to Newspan(s.Start().AddDate(years, months, day
timespan.go:133
↓ 4 callersMethodStart
Start returns the time instant at the start of s.
timespan.go:32
↓ 3 callersMethodIsZero
IsZero reports whether s represents the zero-length span starting and ending on January 1, year 1, 00:00:00 UTC.
timespan.go:117
↓ 3 callersMethodOverlaps
Overlaps reports whether s and r intersect for a non-zero duration.
timespan.go:143
↓ 3 callersFunctiontmax
tmax returns the later of two time instants.
timespan.go:153
↓ 3 callersFunctiontmin
tmin returns the earlier of two time instants.
timespan.go:161
FunctionBenchmarkAfter
(b *testing.B)
timespan_test.go:304
FunctionBenchmarkBefore
(b *testing.B)
timespan_test.go:312
FunctionBenchmarkBorders
(b *testing.B)
timespan_test.go:406
FunctionBenchmarkContains
(b *testing.B)
timespan_test.go:342
FunctionBenchmarkContainsTime
(b *testing.B)
timespan_test.go:334
FunctionBenchmarkDuration
(b *testing.B)
timespan_test.go:297
FunctionBenchmarkEncompass
(b *testing.B)
timespan_test.go:349
FunctionBenchmarkEnd
(b *testing.B)
timespan_test.go:290
FunctionBenchmarkEqual
(b *testing.B)
timespan_test.go:399
FunctionBenchmarkFollows
(b *testing.B)
timespan_test.go:320
FunctionBenchmarkGap
(b *testing.B)
timespan_test.go:356
FunctionBenchmarkIntersection
(b *testing.B)
timespan_test.go:363
FunctionBenchmarkIsZero
(b *testing.B)
timespan_test.go:392
FunctionBenchmarkOffset
(b *testing.B)
timespan_test.go:370
FunctionBenchmarkOffsetDate
(b *testing.B)
timespan_test.go:378
FunctionBenchmarkOverlaps
(b *testing.B)
timespan_test.go:385
FunctionBenchmarkPrecedes
(b *testing.B)
timespan_test.go:327
FunctionBenchmarkStart
(b *testing.B)
timespan_test.go:283
FunctionTestAfter
(t *testing.T)
timespan_test.go:48
FunctionTestBefore
(t *testing.T)
timespan_test.go:60
FunctionTestBorders
(t *testing.T)
timespan_test.go:150
FunctionTestContains
(t *testing.T)
timespan_test.go:183
FunctionTestContainsTime
(t *testing.T)
timespan_test.go:168
FunctionTestEncompass
(t *testing.T)
timespan_test.go:201
FunctionTestEqual
(t *testing.T)
timespan_test.go:126
FunctionTestFollows
(t *testing.T)
timespan_test.go:72
FunctionTestGap
(t *testing.T)
timespan_test.go:216
FunctionTestIntersection
(t *testing.T)
timespan_test.go:232
FunctionTestNew
(t *testing.T)
timespan_test.go:32
FunctionTestOffset
(t *testing.T)
timespan_test.go:250
FunctionTestOffsetDate
(t *testing.T)
timespan_test.go:262
FunctionTestPrecedes
(t *testing.T)
timespan_test.go:99