Documentation
¶
Overview ¶
Package strftime provides strftime/strptime compatible time formatting and parsing.
Example (ConvertToGoTimeLayout) ¶
layout, err := strftime.Layout("%Y-%m-%d %H:%M:%S")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%q", layout)
Output: "2006-01-02 15:04:05"
Example (ConvertToNSDateFormatterPattern) ¶
layout, err := strftime.UTS35("%Y-%m-%d %H:%M:%S")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%q", layout)
Output: "yyyy-MM-dd HH:mm:ss"
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFormat ¶ added in v0.1.1
AppendFormat is like Format, but appends the textual representation to dst and returns the extended buffer.
func Format ¶
Format returns a textual representation of the time value formatted according to the strftime format specification.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.