Golang time/date Object
This stable version
Installation
$ go get github.com/mantyr/newtime
Example
package main
import (
"github.com/mantyr/newtime"
"fmt"
)
func main() {
date := newtime.NewTime()
fmt.Println(date) // "YYYY-mm-dd HH:ii:ss", this current time, "2016-04-01 04:06:36"
fmt.Println(date.Format("yyyy/_long_month_/dd")) // "YYYY/Month/dd", example "2016/April/01"
date.Parse("2016-04-01T00:12:36", "yyyy-mm-ddTHH:ii:ss")
fmt.Println(date.Format("YYYY-mm-dd HH:ii:ss")) // "2016-04-01 00:12:36"
// More examples in time_test.go
}