clocks

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MPL-2.0 Imports: 4 Imported by: 0 modules, 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

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct {
	Label    string
	Location *time.Location
}

func NewClock

func NewClock(label string, timeLoc *time.Location) Clock

func (*Clock) Date

func (clock *Clock) Date() string

func (*Clock) LocalTime

func (clock *Clock) LocalTime() time.Time

func (*Clock) Time

func (clock *Clock) Time() string

func (*Clock) ToLocal added in v0.0.4

func (clock *Clock) ToLocal(t time.Time) time.Time

type ClockCollection

type ClockCollection struct {
	Clocks []Clock
}

func (*ClockCollection) Sorted

func (clocks *ClockCollection) Sorted() []Clock

func (*ClockCollection) SortedAlphabetically

func (clocks *ClockCollection) SortedAlphabetically()

func (*ClockCollection) SortedChronologically

func (clocks *ClockCollection) SortedChronologically()

type Widget

type Widget struct {
	wtf.TextWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget() *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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