timeutil

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package timeutil provides helpers for working with pkg/time.Time.

Index

Constants

View Source
const (
	TS_FORMAT = "2006_01_02_15_04_05"
)

Variables

This section is empty.

Functions

func Timestamp

func Timestamp(dt time.Time) string

Timestamp returns a timestamp string based on the input pkg/time.Time.

Uses the: "2006_01_02_15_04_05" template for formatting.

func TimestampNow

func TimestampNow() string

TimestampNow returns a timestamp string based on pkg/time.Now().

Uses the: "2006_01_02_15_04_05" template for formatting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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