clock

package
v0.0.0-...-bc789a4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct {
	// contains filtered or unexported fields
}

Clock type defines a clock structure

func New

func New(hours, minutes int) Clock

New function creates a clock

func (Clock) Add

func (c Clock) Add(minutes int) Clock

Add method adds minutes to the clock time

func (Clock) String

func (c Clock) String() string

String method generates the textual representation of the clock

func (Clock) Subtract

func (c Clock) Subtract(minutes int) Clock

Subtract method subtracts minutes to the clock time

Jump to

Keyboard shortcuts

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