units

package
v0.0.0-...-5657e6c Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Temperature

type Temperature int

func ParseTemperature

func ParseTemperature(input string) (Temperature, error)

func (Temperature) Float

func (t Temperature) Float() float64

func (Temperature) String

func (t Temperature) String() string

type TimeOfDay

type TimeOfDay uint

func NewTimeOfDay

func NewTimeOfDay(hour, minute int, sec ...int) TimeOfDay

func ParseTimeOfDay

func ParseTimeOfDay(input string) (TimeOfDay, error)

func (TimeOfDay) Hour

func (t TimeOfDay) Hour() int

func (TimeOfDay) MarshalText

func (t TimeOfDay) MarshalText() ([]byte, error)

func (TimeOfDay) Minute

func (t TimeOfDay) Minute() int

func (TimeOfDay) NextOccuranceAfter

func (t TimeOfDay) NextOccuranceAfter(current time.Time) time.Time

func (TimeOfDay) Second

func (t TimeOfDay) Second() int

func (TimeOfDay) String

func (t TimeOfDay) String() string

func (*TimeOfDay) UnmarshalText

func (t *TimeOfDay) UnmarshalText(data []byte) error

func (TimeOfDay) Valid

func (t TimeOfDay) Valid() bool

Jump to

Keyboard shortcuts

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