systemdtime

package
v0.0.0-...-4ae8d74 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustTime

func AdjustTime(original *time.Time, adjustment string) (time.Time, error)

AdjustTime takes a systemd time adjustment string and uses it to modify a time.Time

func ToDuration

func ToDuration(raw string) (time.Duration, error)

ToDuration converts a systemd relative time string into time.Duration

func UnitToDuration

func UnitToDuration(unit string) (time.Duration, error)

UnitToDuration converts a systemd unit (e.g. "day") to time.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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