datefmt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(t time.Time) string

Date returns "Monday 2. Jan 2006".

func DateTime

func DateTime(t, reference time.Time) string

DateTime returns "2. Jan 2006 15:04", or "15:04" if t and reference have the same day, or an empty string if t is the zero time.

func DateTimeRange

func DateTimeRange(begin, end, reference time.Time) string

DateTimeRange formats a date range using DateTime.

func ISODate

func ISODate(t time.Time) string

func ISOTime

func ISOTime(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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