Add returns a new DateTime based on the current DateTime + the specified duration.
(duration time.Duration)
| 37 | |
| 38 | // Add returns a new DateTime based on the current DateTime + the specified duration. |
| 39 | func (d DateTime) Add(duration time.Duration) DateTime { |
| 40 | d.t = d.t.Add(duration) |
| 41 | return d |
| 42 | } |
| 43 | |
| 44 | // Sub returns a [time.Duration] by subtracting the specified DateTime from the current one. |
| 45 | // |
no outgoing calls