time

package
v0.0.0-...-fe78ce7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Travel

type Travel struct {
	time.Time
}

func TravelFrom

func TravelFrom(from time.Time) Travel

func (Travel) Ago

func (t Travel) Ago(years int, months int, days int) Travel

Ago travels time back by given number of years, months and days.

func (Travel) BeginningOfDay

func (t Travel) BeginningOfDay() Travel

BeginningOfDay travels time back to beginning of time's day (00:00:00).

func (Travel) DaysAgo

func (t Travel) DaysAgo(days int) Travel

DaysAgo travels time back by given number of days.

func (Travel) MonthsAgo

func (t Travel) MonthsAgo(months int) Travel

MonthsAgo travels time back by given number of months.

func (Travel) T

func (t Travel) T() time.Time

T returns the underlying time.

func (Travel) YearsAgo

func (t Travel) YearsAgo(years int) Travel

YearsAgo travels time back by given number of years.

Jump to

Keyboard shortcuts

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