UNPKG

timewarp-sim

Version:

🕰️ Deterministic time simulation and manipulation library for TypeScript

13 lines (12 loc) 332 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TimeUtils = void 0; class TimeUtils { static format(date) { return date.toISOString(); } static addDays(date, days) { return new Date(date.getTime() + days * 24 * 60 * 60 * 1000); } } exports.TimeUtils = TimeUtils;