Add Duration
Add Go duration to RFC3339 time.
How to use Add Duration
Add Duration — Add a Go duration to an RFC3339 time and print the result. Free to use in D2i DevTools — no account required.
Steps
- Fill in RFC3339. This field is required.
- Fill in Duration (e.g. 2h30m). This field is required.
- Click Run and copy the result under the form.
Frequently asked questions
What is Add Duration used for?
Use it to compute an expiry, a reminder, or a window from a start time without doing the arithmetic by hand.
How do I use the free online Add Duration tool?
Fill in RFC3339. This field is required. Fill in Duration (e.g. 2h30m). This field is required. Click Run and copy the result under the form.
What can I paste or upload into Add Duration?
Enter an RFC3339 time and a duration such as 2h30m, 45m, 1h, or -15m.
What output does Add Duration give me?
The shifted RFC3339 time. Units include h, m, s, ms, us, and ns. Days are not a unit; use 24h for one day.
Is Add Duration free, and is my input private?
Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.
Why is 1d rejected?
Go durations have no day unit because days are not always 24 hours in every calendar. Use 24h if a day means 24 hours for you.
Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.