Returns the UTC offset, whether daylight saving is in effect, and the zone abbreviation for a time zone, either right now or on a specific date.
timezone is an IANA name. Pass date (YYYY-MM-DD) to query the offset and DST state on that day; omit it for the current instant. Because offsets change with daylight saving, the answer is date-dependent. Computed locally.
Optional date (YYYY-MM-DD) to query the offset/DST state on. Defaults to now.
IANA time-zone name (e.g. America/New_York, Europe/London).