times

package
v0.0.0-...-52a80d5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreDatesTheSameDay

func AreDatesTheSameDay(t1, t2 time.Time) bool

AreDatesTheSameDay returns true if the passed times represent the same day of the year.

func TimeToLocalString

func TimeToLocalString(time *time.Time) string

TimeToLocalString formats a time to a string depending on the users settings. The time will first be converted into a local time.

func TimeToString

func TimeToString(time *time.Time) string

TimeToString formats a time to a string depending on the users settings.

Types

type Duration

type Duration time.Duration

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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