Documentation
¶
Index ¶
- func ConvertGoLayoutToUnicode(layout string) string
- func Layout(s string) string
- func LayoutUnicode(s string) string
- func MustParse(s string) time.Time
- func Parse(s string) (time.Time, error)
- func ParseAndGetLayout(date string) (time.Time, string, error)
- func ParseInLocation(s string, loc *time.Location) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGoLayoutToUnicode ¶
ConvertGoLayoutToUnicode converts the given time layout string to on using the Unicode standard prescribed in http://www.unicode.org/reports/tr35/tr35-19.html#Date_Format_Patterns NOT TESTED.
func Layout ¶
Layout returns the layout of this date, appropriate for use with the Go time package, for example "Jan 02 2006". See http://golang.org/pkg/time/ for more examples.
func LayoutUnicode ¶
LayoutUnicode returns the layout of this date according to the Unicode standard: http://www.unicode.org/reports/tr35/tr35-19.html#Date_Format_Patterns NOT TESTED.
func Parse ¶
Parse attempts to parse this string as a timestamp, returning an error if it cannot. Example inputs: "July 9 1977", "07/9/1977 5:03pm". Assumes UTC if a timezone is not provided.
func ParseAndGetLayout ¶
ParseAndGetLayout attempts to parse this string as a timestamp and if successful, returns the timestamp and the layout of the string.
Types ¶
This section is empty.