Closed ddkwork closed 1 year ago
package main
import ( "fmt" "time" )
func main() { a, := time.Parse("2006-01-02", "2017-09-01") b, := time.Parse("2006-01-02", "2018-03-11") d := a.Sub(b)
fmt.Println(d.Hours() / 24)
}
package main
import ( "fmt" "time" )
func main() { a, := time.Parse("2006-01-02", "2017-09-01") b, := time.Parse("2006-01-02", "2018-03-11") d := a.Sub(b)
}