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