What is Timedelta?
masterA Timedelta represents a duration between two dates, inspired by Python's timedelta. It allows you to define durations using human-readable units like Days, Weeks, or Minutes, which can then be converted into a standard time.Duration to be used with Go's native time.Time objects.
base := time.Date(2015, 2, 3, 0, 0, 0, 0, time.UTC)
td := timeutil.Timedelta{Days: 10, Minutes: 17, Seconds: 56}
result := base.Add(td.Duration())
// result is 2015-02-13 00:17:56 +0000 UTC