You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be useful to provide utils for directly truncating minutes relative full hours directly on JS Date objects, and it's easy to forget that it requires a timezone to do correctly... ;)
ComPlainDate could help developers by directly providing:
startOfHour(timezone: string)(instant: Date): Date
startOfDay(timezone: string)(instant: Date): Date
...and perhaps also:
truncateToHalfHour
truncateToThirdOfHour
truncateToQuarterOfHour
truncateToSixthOfHour
truncateToTwelfthOfHour
The text was updated successfully, but these errors were encountered:
It could be useful to provide utils for directly truncating minutes relative full hours directly on JS
Date
objects, and it's easy to forget that it requires a timezone to do correctly... ;)ComPlainDate could help developers by directly providing:
startOfHour(timezone: string)(instant: Date): Date
startOfDay(timezone: string)(instant: Date): Date
...and perhaps also:
The text was updated successfully, but these errors were encountered: