moment

package
v0.0.0-...-c39e8e5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForNow

func ForNow(t time.Time) string

ForNow returns a human friendly string for describing a time point t relative to the current time.

func String

func String(t, now time.Time) string

String returns a human friendly string for describing a time point t relative to the time point of now. When calculating time differences, it uses the time zone of the time point of now.

Types

This section is empty.

Jump to

Keyboard shortcuts

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