Documentation ¶
Index ¶
Constants ¶
View Source
const TimeStringLayout = "2006-01-02 15:04:05.999999999 -0700 MST"
TimeStringLayout is the layout used by time/Time.String() to create a string representation of a Time value.
Variables ¶
This section is empty.
Functions ¶
func ConvertFormat ¶
ConvertFormat converts the time format of cur from curLayout to newLayout.
This is achieved by first attempting to parse cur using old layout. If parsing fails the error is returned verbatim. Usually this indicates that cur did not match curLayout and the caller may act accordingly.
If parsing cur was successful it is converted to newLayout using time/Time.Format().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.