clock

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IClock added in v0.8.78

type IClock interface {
	Now() time.Time
	NowPointer() *time.Time
}

type SysClock

type SysClock struct{}

func (*SysClock) Now

func (c *SysClock) Now() time.Time

func (*SysClock) NowInLocation added in v1.2.76

func (c *SysClock) NowInLocation(loc *time.Location) time.Time

func (*SysClock) NowInTimeZone added in v1.2.76

func (c *SysClock) NowInTimeZone() time.Time

func (*SysClock) NowPointer

func (c *SysClock) NowPointer() *time.Time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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