timestamp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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 Config

type Config struct {
	Local  string `mapstructure:"local"`
	Format string `mapstructure:"format"`
	Parse  string `mapstructure:"parse"`
}

type Timestamp

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

func NewTimestamp

func NewTimestamp(params Config) (Timestamp, error)

func (Timestamp) Format

func (t Timestamp) Format(date time.Time) string

func (Timestamp) Now

func (t Timestamp) Now() time.Time

func (Timestamp) Parse

func (t Timestamp) Parse(date string) (time.Time, error)

Jump to

Keyboard shortcuts

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