datetime

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAfter

func IsAfter(date1, date2 time.Time) bool

Is the first date after the second one?

func ParseISO

func ParseISO(isoString string) (time.Time, error)

Parse the given string in ISO 8601 format and return an instance of Date.

func SubDays

func SubDays(date time.Time, days int) time.Time

Subtract the specified number of days from the given date.

func SubHours

func SubHours(date time.Time, hours int) time.Time

Subtract the specified number of hours from the given date.

Types

This section is empty.

Jump to

Keyboard shortcuts

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