chore: fix date tests

This commit is contained in:
Mo
2022-12-01 07:05:02 -06:00
parent 1ee6be4e5c
commit 73ca12275f
6 changed files with 31 additions and 20 deletions

View File

@@ -0,0 +1,14 @@
/** Negative numbers are supported as well */
export function addDaysToDate(date: Date, days: number) {
const result = new Date(date)
result.setDate(result.getDate() + days)
return result
}
export function addHoursToDate(date: Date, hours: number) {
const result = new Date(date)
result.setHours(result.getHours() + hours)
return result
}

View File

@@ -1,6 +1,7 @@
export * from './Utils/Utils'
export * from './Date/DateUtils'
export * from './Deferred/Deferred'
export * from './Utils/ClassNames'
export * from './Utils/Utils'
export * from './Uuid/Utils'
export * from './Uuid/UuidGenerator'
export * from './Uuid/UuidMap'
export * from './Uuid/Utils'
export * from './Deferred/Deferred'