cltime

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const CitrusleafEpoch int64 = 1262304000

CitrusleafEpoch is the start time in seconds of the citrusleaf epoch relative to the Unix epoch.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLTime

type CLTime struct {
	Seconds int64
}

CLTime is a struct that represents a time in seconds since the citrusleaf epoch.

func NewCLTime

func NewCLTime(seconds int64) CLTime

NewCLTime returns a new CLTime object with the given number of seconds.

func Now

func Now() CLTime

Now returns the current time in seconds since the citrusleaf epoch.

func (*CLTime) Unix

func (c *CLTime) Unix() int64

Unix returns the time in seconds since the Unix epoch.

Jump to

Keyboard shortcuts

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