Documentation ¶
Overview ¶
Example ¶
package main import ( "fmt" "github.com/emylincon/gotime" ) func main() { time, err := gotime.Parse("2016 07 25") if err != nil { fmt.Println(err) // handle error } fmt.Println(time) time, err = gotime.Parse("25 07 2016") if err != nil { fmt.Println(err) // handle error } fmt.Println(time) time, err = gotime.Parse("01 January 1970 00:00:00 GMT") if err != nil { fmt.Println(err) // handle error } fmt.Println(time) }
Output: 2016-07-25 00:00:00 +0000 UTC 2016-07-25 00:00:00 +0000 UTC 1970-01-01 00:00:00 +0000 GMT
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.