Function getRoundedDateTime
Parameters
- date: Date
- precision: number | "day" | "hour" | "minute"
Precision in milliseconds (eg, 1000 to round down to seconds, 86400*1000 to round down to a day)
Returns Date
- Rounded datetime
Precision in milliseconds (eg, 1000 to round down to seconds, 86400*1000 to round down to a day)
Round down a datetime