{"slug":"us-daylight-saving-switch-tehran-time","qid":"dst_switches","label":"dst_switches","post_title":"us-daylight-saving-switch-tehran-time","post_url":"/blog/lang/fa/us-daylight-saving-switch-tehran-time#q-dst_switches","columns":["switch_iso","switch_label","ny_clock","tehran_open_clock","tehran_close_clock","tehran_open_hour"],"rows":[{"switch_iso":"2025-03-09","switch_label":"9 مارس 2025","ny_clock":"EDT","tehran_open_clock":"17:00","tehran_close_clock":"23:30","tehran_open_hour":17},{"switch_iso":"2025-11-02","switch_label":"2 نوامبر 2025","ny_clock":"EST","tehran_open_clock":"18:00","tehran_close_clock":"00:30","tehran_open_hour":18},{"switch_iso":"2026-03-08","switch_label":"8 مارس 2026","ny_clock":"EDT","tehran_open_clock":"17:00","tehran_close_clock":"23:30","tehran_open_hour":17},{"switch_iso":"2026-11-01","switch_label":"1 نوامبر 2026","ny_clock":"EST","tehran_open_clock":"18:00","tehran_close_clock":"00:30","tehran_open_hour":18},{"switch_iso":"2027-03-14","switch_label":"14 مارس 2027","ny_clock":"EDT","tehran_open_clock":"17:00","tehran_close_clock":"23:30","tehran_open_hour":17},{"switch_iso":"2027-11-07","switch_label":"7 نوامبر 2027","ny_clock":"EST","tehran_open_clock":"18:00","tehran_close_clock":"00:30","tehran_open_hour":18},{"switch_iso":"2028-03-12","switch_label":"12 مارس 2028","ny_clock":"EDT","tehran_open_clock":"17:00","tehran_close_clock":"23:30","tehran_open_hour":17},{"switch_iso":"2028-11-05","switch_label":"5 نوامبر 2028","ny_clock":"EST","tehran_open_clock":"18:00","tehran_close_clock":"00:30","tehran_open_hour":18}],"shape":"table","sql":"SELECT\n    toString(switch_date)                                              AS switch_iso,\n    concat(toString(toDayOfMonth(switch_date)), ' ',\n           ['ژانویه', 'فوریه', 'مارس', 'آپریل', 'مه', 'ژوئن',\n            'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'][toMonth(switch_date)], ' ',\n           toString(toYear(switch_date)))                              AS switch_label,\n    if(toHour(toTimeZone(ny_open, 'UTC')) = 13, 'EDT', 'EST')          AS ny_clock,\n    formatDateTime(toTimeZone(ny_open, 'Asia/Tehran'), '%H:%i')        AS tehran_open_clock,\n    formatDateTime(toTimeZone(ny_close, 'Asia/Tehran'), '%H:%i')       AS tehran_close_clock,\n    round(toHour(toTimeZone(ny_open, 'Asia/Tehran'))\n          + toMinute(toTimeZone(ny_open, 'Asia/Tehran')) / 60.0, 2)    AS tehran_open_hour\nFROM\n(\n    SELECT\n        switch_date,\n        toDateTime(concat(toString(switch_date), ' 09:30:00'), 'America/New_York') AS ny_open,\n        toDateTime(concat(toString(switch_date), ' 16:00:00'), 'America/New_York') AS ny_close\n    FROM\n    (\n        SELECT arrayJoin([spring_switch, fall_switch]) AS switch_date\n        FROM\n        (\n            SELECT\n                mar1 + ((7 - toDayOfWeek(mar1)) % 7) + 7 AS spring_switch,\n                nov1 + ((7 - toDayOfWeek(nov1)) % 7)     AS fall_switch\n            FROM\n            (\n                SELECT\n                    toDate(concat(toString(y), '-03-01')) AS mar1,\n                    toDate(concat(toString(y), '-11-01')) AS nov1\n                FROM ( SELECT arrayJoin([2025, 2026, 2027, 2028]) AS y )\n            )\n        )\n    )\n)\nORDER BY switch_date","computed_at":"2026-10-08T15:49:08.505204+00:00","elapsed":0.034622594}