{"slug":"us-daylight-saving-switch-tehran-time","qid":"tehran_session_map","label":"tehran_session_map","post_title":"us-daylight-saving-switch-tehran-time","post_url":"/blog/lang/fa/us-daylight-saving-switch-tehran-time#q-tehran_session_map","columns":["milestone","new_york_clock","tehran_edt_clock","tehran_est_clock","tehran_hour_edt","tehran_hour_est"],"rows":[{"milestone":"آغاز پیش‌بازار","new_york_clock":"04:00","tehran_edt_clock":"11:30","tehran_est_clock":"12:30","tehran_hour_edt":11.5,"tehran_hour_est":12.5},{"milestone":"بازگشایی نشست اصلی","new_york_clock":"09:30","tehran_edt_clock":"17:00","tehran_est_clock":"18:00","tehran_hour_edt":17,"tehran_hour_est":18},{"milestone":"پایان نخستین ساعت","new_york_clock":"10:30","tehran_edt_clock":"18:00","tehran_est_clock":"19:00","tehran_hour_edt":18,"tehran_hour_est":19},{"milestone":"بسته شدن نشست اصلی","new_york_clock":"16:00","tehran_edt_clock":"23:30","tehran_est_clock":"00:30","tehran_hour_edt":23.5,"tehran_hour_est":24.5},{"milestone":"پایان پس‌بازار","new_york_clock":"20:00","tehran_edt_clock":"03:30","tehran_est_clock":"04:30","tehran_hour_edt":27.5,"tehran_hour_est":28.5}],"shape":"series","sql":"SELECT\n    milestone,\n    new_york_clock,\n    formatDateTime(toTimeZone(edt_ts, 'Asia/Tehran'), '%H:%i') AS tehran_edt_clock,\n    formatDateTime(toTimeZone(est_ts, 'Asia/Tehran'), '%H:%i') AS tehran_est_clock,\n    round((toUnixTimestamp(edt_ts)\n           - toUnixTimestamp(toDateTime(concat(toString(edt_date), ' 00:00:00'), 'Asia/Tehran'))) / 3600.0, 2) AS tehran_hour_edt,\n    round((toUnixTimestamp(est_ts)\n           - toUnixTimestamp(toDateTime(concat(toString(est_date), ' 00:00:00'), 'Asia/Tehran'))) / 3600.0, 2) AS tehran_hour_est\nFROM\n(\n    SELECT\n        m.1                                                                  AS sort_order,\n        m.2                                                                  AS milestone,\n        substring(m.3, 1, 5)                                                 AS new_york_clock,\n        edt_date,\n        est_date,\n        toDateTime(concat(toString(edt_date), ' ', m.3), 'America/New_York') AS edt_ts,\n        toDateTime(concat(toString(est_date), ' ', m.3), 'America/New_York') AS est_ts\n    FROM\n    (\n        SELECT\n            arrayJoin([\n                (1, 'آغاز پیش‌بازار',       '04:00:00'),\n                (2, 'بازگشایی نشست اصلی',   '09:30:00'),\n                (3, 'پایان نخستین ساعت',    '10:30:00'),\n                (4, 'بسته شدن نشست اصلی',   '16:00:00'),\n                (5, 'پایان پس‌بازار',       '20:00:00')\n            ])            AS m,\n            est_date,\n            est_date - 4  AS edt_date\n        FROM\n        (\n            SELECT nov1 + ((7 - toDayOfWeek(nov1)) % 7) AS est_date\n            FROM ( SELECT toDate('2026-11-01') AS nov1 )\n        )\n    )\n)\nORDER BY sort_order","computed_at":"2026-10-08T15:49:08.623973+00:00","elapsed":0.02198197}