// SPDX-License-Identifier: MPL-2.0 // (c) Hare authors use time; // Adds a [[time::duration]] to a [[date]] with [[time::add]]. This is a // timescalar aritmetic operation. // // See [[reckon]]. export fn add(d: date, x: time::duration) date = { return from_instant(d.loc, time::add(to_instant(d), x)); };