format

package
v0.0.0-...-58462b0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FlagTimeFormat = "time-format"
)

Variables

This section is empty.

Functions

func FormatTime

func FormatTime(c *cli.Context, val time.Time) string

func TimeValue

func TimeValue(t *time.Time) time.Time

Types

type FormatTimeOption

type FormatTimeOption string
const (
	Relative FormatTimeOption = "relative"
	ISO      FormatTimeOption = "iso"
	Raw      FormatTimeOption = "raw"
)

Jump to

Keyboard shortcuts

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