package main
import (
"fmt"
"time"
)
func main() {
startDate := time.Date(2025, time.January, 12, 0, 0, 0, 0, time.UTC)
endDate := time.Date(2025, time.January, 13, 0, 0, 0, 0, time.UTC)
duration := endDate.Sub(startDate)
seconds := int(duration.Seconds())
fmt.Printf("The difference between the two dates is %d seconds\n", seconds)
}
/*
run:
The difference between the two dates is 86400 seconds
*/