datetime

package
v0.201.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatesService

type DatesService struct{}

func Dates

func Dates() (d *DatesService)

func NewDatesService

func NewDatesService() (d *DatesService)

func (*DatesService) FormatAsYYYYmmdd_HHMMSSString

func (d *DatesService) FormatAsYYYYmmdd_HHMMSSString(input *time.Time) (formated string, err error)

func (*DatesService) GetCurrentYearAsString

func (d *DatesService) GetCurrentYearAsString() (year string)

func (*DatesService) LayoutStringYYYYmmdd_HHMMSS

func (d *DatesService) LayoutStringYYYYmmdd_HHMMSS() (layout string)

func (*DatesService) MustFormatAsYYYYmmdd_HHMMSSString

func (d *DatesService) MustFormatAsYYYYmmdd_HHMMSSString(input *time.Time) (formated string)

func (*DatesService) MustParseString

func (d *DatesService) MustParseString(input string) (date *time.Time)

func (*DatesService) MustParseStringPrefixAsDate

func (d *DatesService) MustParseStringPrefixAsDate(input string) (parsed *time.Time)

func (*DatesService) MustParseStringWithGivenLayout

func (d *DatesService) MustParseStringWithGivenLayout(input string, layout string) (date *time.Time)

func (*DatesService) ParseString

func (d *DatesService) ParseString(input string) (date *time.Time, err error)

func (*DatesService) ParseStringPrefixAsDate

func (d *DatesService) ParseStringPrefixAsDate(input string) (parsed *time.Time, err error)

func (*DatesService) ParseStringWithGivenLayout

func (d *DatesService) ParseStringWithGivenLayout(input string, layout string) (date *time.Time, err error)

type TimeService

type TimeService struct{}

func NewTimeService

func NewTimeService() (t *TimeService)

func Time

func Time() (t *TimeService)

func (*TimeService) GetCurrentTimeAsSortableString

func (t *TimeService) GetCurrentTimeAsSortableString() (currentTime string)

Jump to

Keyboard shortcuts

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