timeutil

package
v0.0.0-...-f83813f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const LayoutISODate = "2006-01-02"

Variables

This section is empty.

Functions

func FirstDayOfISOWeek

func FirstDayOfISOWeek(year int, week int, timezone *time.Location) (*time.Time, error)

func FirstDayOfTheMonth

func FirstDayOfTheMonth(t time.Time) time.Time

func MondayOfTheWeek

func MondayOfTheWeek(t time.Time) time.Time

func TruncateToDate

func TruncateToDate(t time.Time) time.Time

Types

type Date

type Date time.Time

Date type is for date serialization

func (*Date) Decode

func (date *Date) Decode(value string) error

func (Date) IsZero

func (date Date) IsZero() bool

func (Date) MarshalJSON

func (date Date) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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