rtc

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: BSD-3-Clause Imports: 4 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTC

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

func OpenRTC

func OpenRTC() (*RTC, error)

OpenRTC opens an RTC. It will typically only work on Linux, but since it uses a file API, it will be tried on all systems. Perhaps at some future time, other kernels will implement this API.

func (*RTC) Close

func (r *RTC) Close() error

Close closes the RTC

func (*RTC) Read

func (r *RTC) Read() (time.Time, error)

Read implements Read for the Linux RTC

func (*RTC) Set

func (r *RTC) Set(tu time.Time) error

Set implements Set for the Linux RTC

Jump to

Keyboard shortcuts

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