calculate_timezone_offset
Calculate the current UTC offset between a source and target time zone, accounting for Daylight Saving Time. Use for scheduling and date math across multiple time zones.
Instructions
Compute current UTC offset for a timezone, accounting for DST. Use for scheduling and date math. Inputs: timezone (IANA name). Returns UTC offset and DST status. See list_bundles for related 'temps-rh' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_zone | Yes | Source time zone | |
| to_zone | Yes | Target time zone |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |