import { type DateOnlyTimezone } from "https://deno.land/x/date_only@0.1.0/mod.ts";
The hours to offset the DateOnly
from UTC time. Other valid options are
'local'
and 'min-max'
.
'local'
=> Uses the local timezone as determined via using new Date().getTimezoneOffset()
'min-max'
=> Creates creates a 50 hour window instead of a 24 hours one to represent the
range that the date would have occurred for at least one timezone in the world. This comes
from the fact that all timezones in the world have a range of 30 hours from UTC -12 to
UTC + 14. This is useful for when you're unsure of the viewers timezone, such as filtering
server side for a query, and want to return all items which could possibly match depending
on their location.