Documentation
¶
Index ¶
- Variables
- func FormatDateByDefault(t time.Time, location *time.Location) string
- func FormatDateTimeByDefault(t time.Time, location *time.Location) string
- func FromRFC3339(rfc3339 string, location *time.Location) (string, error)
- func SupportDateFormats() string
- func ToDefaultDate(date string, location *time.Location) (string, error)
- func ToRFC3339(date string, location *time.Location) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDateInvalid = errors.New("date invalid")
)
Functions ¶
func FormatDateByDefault ¶ added in v0.4.0
Format time to default date format
func FormatDateTimeByDefault ¶ added in v0.4.0
Format time to default date time format
func FromRFC3339 ¶
Convert RFC3339 to default custom date format
func SupportDateFormats ¶ added in v0.3.0
func SupportDateFormats() string
Return all support date formats For showing only
func ToDefaultDate ¶ added in v0.5.0
Whatever date format is, always return default date format
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.