Documentation
¶
Index ¶
- type DatesService
- func (d *DatesService) FormatAsYYYYmmdd_HHMMSSString(input *time.Time) (formated string, err error)
- func (d *DatesService) GetCurrentYearAsString() (year string)
- func (d *DatesService) LayoutStringYYYYmmdd_HHMMSS() (layout string)
- func (d *DatesService) MustFormatAsYYYYmmdd_HHMMSSString(input *time.Time) (formated string)
- func (d *DatesService) MustParseString(input string) (date *time.Time)
- func (d *DatesService) MustParseStringPrefixAsDate(input string) (parsed *time.Time)
- func (d *DatesService) MustParseStringWithGivenLayout(input string, layout string) (date *time.Time)
- func (d *DatesService) ParseString(input string) (date *time.Time, err error)
- func (d *DatesService) ParseStringPrefixAsDate(input string) (parsed *time.Time, err error)
- func (d *DatesService) ParseStringWithGivenLayout(input string, layout string) (date *time.Time, err error)
- type TimeService
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.