MCPcopy Create free account
hub / github.com/codnect/chrono / setNextBit

Function setNextBit

cron.go:373–381  ·  view source on GitHub ↗
(bitsValue uint64, index int)

Source from the content-addressed store, hash-verified

371}
372
373func setNextBit(bitsValue uint64, index int) int {
374 result := bitsValue & (mask << index)
375
376 if result != 0 {
377 return bits.TrailingZeros64(result)
378 }
379
380 return -1
381}
382
383func elapseUntil(t time.Time, fieldType fieldType, value int) time.Time {
384 current := getTimeValue(t, fieldType.Field)

Callers 1

nextFieldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected