date

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateInformation

type DateInformation struct {
	Original  time.Time
	Date      string
	DateTime  string
	TimeStamp int64
	Error     error
}

type TimeLapseInformation

type TimeLapseInformation struct {
	Label     string
	Duration  int64
	DurationF float64
	Error     error
}

type UtilDate

type UtilDate struct {
}

func (UtilDate) AddDays

func (obj UtilDate) AddDays(date time.Time, value int) DateInformation

func (UtilDate) AddHours

func (obj UtilDate) AddHours(date time.Time, value int) DateInformation

func (UtilDate) AddMinutes

func (obj UtilDate) AddMinutes(date time.Time, value int) DateInformation

func (UtilDate) AddMonths

func (obj UtilDate) AddMonths(date time.Time, value int) DateInformation

func (UtilDate) AddYears

func (obj UtilDate) AddYears(date time.Time, value int) DateInformation

func (UtilDate) CurrentTime

func (obj UtilDate) CurrentTime() DateInformation

func (UtilDate) CurrentTimeUTC

func (obj UtilDate) CurrentTimeUTC() DateInformation

func (UtilDate) ExecTimeLapse

func (obj UtilDate) ExecTimeLapse(start time.Time, label string) TimeLapseInformation

func (UtilDate) ExecTimeLapseMS

func (obj UtilDate) ExecTimeLapseMS(start time.Time) TimeLapseInformation

func (*UtilDate) Format

func (obj *UtilDate) Format(date time.Time, format string) string

2006-01-02 15:04:05.000 = yyyy-MM-dd HH:mm:ss.zzz(250) 2006-01-02 03:04:05.999 = yyyy-MM-dd hh:mm:ss.zzz(25)

func (UtilDate) FormatMilliseconds

func (obj UtilDate) FormatMilliseconds(date time.Time) string

func (UtilDate) Now

func (obj UtilDate) Now() time.Time

func (UtilDate) TimeLapseMS

func (obj UtilDate) TimeLapseMS(start time.Time, end time.Time) TimeLapseInformation

func (UtilDate) Week

func (obj UtilDate) Week(date time.Time) (int, error)

Jump to

Keyboard shortcuts

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