clocks

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *config.Config

Config is a pointer to the global config object

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL