export const getFixedDate = (date = new Date()) => {
Rounds a date to the nearest hour.
Dates after half past are rounded up to the next full hour.
Target style API. Preferred for new code.
Helpers
Source: helpers/getFixedDate.mjs
Target Style
export const getFixedDate = (date = new Date()) => {
Rounds a date to the nearest hour.
Dates after half past are rounded up to the next full hour.
Target style API. Preferred for new code.
export const roundDateToHour = (date = new Date()) => {
Rounds a date to the nearest hour with a more descriptive name.
Target style API. Preferred for new code.
Legacy Style
No legacy exports in this module.