clock

package
v0.0.0-...-6d87c88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Timezone *time.Location

Functions

func DayOfAt6am

func DayOfAt6am(t time.Time) time.Time

func NextSaturdayAt10

func NextSaturdayAt10(now time.Time) time.Time

func NextSaturdayAt10Or1030

func NextSaturdayAt10Or1030(now time.Time) time.Time

Types

type AlarmClock

type AlarmClock struct {
	// contains filtered or unexported fields
}

func NewAlarmClock

func NewAlarmClock() *AlarmClock

func (*AlarmClock) C

func (a *AlarmClock) C() <-chan time.Time

func (*AlarmClock) SetAlarm

func (a *AlarmClock) SetAlarm(t time.Time)

func (*AlarmClock) Stop

func (a *AlarmClock) Stop()

func (*AlarmClock) Time

func (a *AlarmClock) Time() time.Time

type AlarmClockInt

type AlarmClockInt interface {
	Time() time.Time
	C() <-chan time.Time
	SetAlarm(time.Time)
	Stop()
}

type FakeAlarmClock

type FakeAlarmClock struct {
	// contains filtered or unexported fields
}

func NewFakeAlarmClock

func NewFakeAlarmClock() *FakeAlarmClock

func (*FakeAlarmClock) C

func (a *FakeAlarmClock) C() <-chan time.Time

func (*FakeAlarmClock) Fire

func (a *FakeAlarmClock) Fire()

func (*FakeAlarmClock) SetAlarm

func (a *FakeAlarmClock) SetAlarm(t time.Time)

func (*FakeAlarmClock) SetTime

func (a *FakeAlarmClock) SetTime(t time.Time)

func (*FakeAlarmClock) Stop

func (a *FakeAlarmClock) Stop()

func (*FakeAlarmClock) Time

func (a *FakeAlarmClock) Time() time.Time

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL