timezone

package
v0.0.0-...-71090b4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule() common.Module

func InSlice

func InSlice(str string, list []string) bool

func ListTimeZones

func ListTimeZones() []string

func ReadTZDir

func ReadTZDir(zoneDir, path string) []string

Types

type TimeZone

type TimeZone struct {
	Name        string
	Description string
	Slug        string
	// contains filtered or unexported fields
}

func (*TimeZone) GetDescription

func (m *TimeZone) GetDescription() string

func (*TimeZone) GetLastRun

func (m *TimeZone) GetLastRun() string

func (*TimeZone) GetName

func (m *TimeZone) GetName() string

func (*TimeZone) GetRunInterval

func (m *TimeZone) GetRunInterval() int64

func (*TimeZone) GetRunIntervalOnBattery

func (m *TimeZone) GetRunIntervalOnBattery() int64

func (*TimeZone) GetSlug

func (m *TimeZone) GetSlug() string

func (*TimeZone) GetWaybarOutput

func (m *TimeZone) GetWaybarOutput() (*common.WaybarOutput, error)

func (*TimeZone) IsEnabled

func (m *TimeZone) IsEnabled() bool

func (*TimeZone) Run

func (m *TimeZone) Run() error

func (*TimeZone) RunCommand

func (m *TimeZone) RunCommand(name string, args []string) error

func (*TimeZone) SaveLastRun

func (m *TimeZone) SaveLastRun()

func (*TimeZone) SuspendOnBattery

func (m *TimeZone) SuspendOnBattery() bool

func (*TimeZone) WriteOutput

func (m *TimeZone) WriteOutput() error

Jump to

Keyboard shortcuts

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