Documentation
¶
Index ¶
- func Since(c Clock) time.Duration
- func Until(c Clock) time.Duration
- type Clock
- func (c Clock) Add(d time.Duration) Clock
- func (c Clock) After(u Clock) bool
- func (c Clock) Before(u Clock) bool
- func (c Clock) Clock() (hour, min, sec int)
- func (c Clock) Compare(u Clock) int
- func (c Clock) Equal(u Clock) bool
- func (c Clock) Hour() int
- func (c Clock) IsZero() bool
- func (c Clock) MarshalText() (text []byte, err error)
- func (c Clock) Minute() int
- func (c Clock) Second() int
- func (c Clock) Seconds() int
- func (c Clock) Since(u Clock) time.Duration
- func (c Clock) String() string
- func (c Clock) Sub(u Clock) time.Duration
- func (c Clock) Time() time.Time
- func (c *Clock) UnmarshalText(text []byte) error
- func (c Clock) Until(u Clock) time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
func (Clock) MarshalText ¶
func (*Clock) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.