12 lines
174 B
Go
12 lines
174 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
// Standard
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func stringToTime(strTime string) (t time.Time, err error) {// {{{
|
||
|
t, err = time.Parse(time.RFC3339, strTime)
|
||
|
return
|
||
|
}// }}}
|