Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
alst161 : you can also look at the library https://github.com/mantyr/newtime , especially for coding in a more familiar way. Inside time and a number of functions for working in an object style.
For example like this:
package main
import (
"github.com/mantyr/newtime"
"fmt"
)
func main() {
date := newtime.NewTime()
date.Parse("16-08-2016 15:11:06", "dd-mm-yyyy HH:ii:ss")
fmt.Println(date.Format("YYYY-mm-dd HH:ii:ss")) // "2016-08-16 15:11:06"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question