(timestamp, days)
| 793 | } |
| 794 | |
| 795 | function addDays(timestamp, days) { |
| 796 | let time = new Date(timestamp * 1000); |
| 797 | return time.setUTCDate(time.getUTCDate() + days) / 1000; |
| 798 | } |
| 799 | |
| 800 | function addWeeks(timestamp, weeks) { |
| 801 | return addDays(timestamp, weeks * 7); |
no outgoing calls
no test coverage detected