{"slug":"us-stock-market-hours-thai-time","qid":"dst_months","label":"dst_months","post_title":"us-stock-market-hours-thai-time","post_url":"/blog/lang/th/us-stock-market-hours-thai-time#q-dst_months","columns":["month","month_label","nights_open_2030_ict","nights_open_2130_ict"],"rows":[{"month":"2025-07-01","month_label":"ก.ค. 2025","nights_open_2030_ict":9,"nights_open_2130_ict":0},{"month":"2025-08-01","month_label":"ส.ค. 2025","nights_open_2030_ict":21,"nights_open_2130_ict":0},{"month":"2025-09-01","month_label":"ก.ย. 2025","nights_open_2030_ict":21,"nights_open_2130_ict":0},{"month":"2025-10-01","month_label":"ต.ค. 2025","nights_open_2030_ict":23,"nights_open_2130_ict":0},{"month":"2025-11-01","month_label":"พ.ย. 2025","nights_open_2030_ict":0,"nights_open_2130_ict":19},{"month":"2025-12-01","month_label":"ธ.ค. 2025","nights_open_2030_ict":0,"nights_open_2130_ict":22},{"month":"2026-01-01","month_label":"ม.ค. 2026","nights_open_2030_ict":0,"nights_open_2130_ict":20},{"month":"2026-02-01","month_label":"ก.พ. 2026","nights_open_2030_ict":0,"nights_open_2130_ict":19},{"month":"2026-03-01","month_label":"มี.ค. 2026","nights_open_2030_ict":17,"nights_open_2130_ict":5},{"month":"2026-04-01","month_label":"เม.ย. 2026","nights_open_2030_ict":21,"nights_open_2130_ict":0},{"month":"2026-05-01","month_label":"พ.ค. 2026","nights_open_2030_ict":20,"nights_open_2130_ict":0},{"month":"2026-06-01","month_label":"มิ.ย. 2026","nights_open_2030_ict":21,"nights_open_2130_ict":0},{"month":"2026-07-01","month_label":"ก.ค. 2026","nights_open_2030_ict":22,"nights_open_2130_ict":0},{"month":"2026-08-01","month_label":"ส.ค. 2026","nights_open_2030_ict":21,"nights_open_2130_ict":0},{"month":"2026-09-01","month_label":"ก.ย. 2026","nights_open_2030_ict":14,"nights_open_2130_ict":0}],"shape":"series","sql":"WITH sessions AS\n(\n    SELECT\n        toStartOfMonth(toDate(toTimeZone(window_start, 'America/New_York')))   AS month_start,\n        toDate(toTimeZone(window_start, 'America/New_York'))                   AS session_date,\n        formatDateTime(toTimeZone(min(window_start), 'Asia/Bangkok'), '%H:%i') AS ict_open\n    FROM global_markets.delayed_stocks_minute_aggs\n    WHERE ticker = 'SPY'\n      AND window_start >= today() - 430\n      AND window_start <  today() - 2\n      AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60\n           + toMinute(toTimeZone(window_start, 'America/New_York'))) >= 570\n      AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60\n           + toMinute(toTimeZone(window_start, 'America/New_York'))) <  960\n    GROUP BY month_start, session_date\n)\nSELECT\n    toString(month_start)                    AS month,\n    concat(arrayElement(['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.',\n                         'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'],\n                        toMonth(month_start)), ' ', toString(toYear(month_start))) AS month_label,\n    countIf(ict_open = '20:30')              AS nights_open_2030_ict,\n    countIf(ict_open = '21:30')              AS nights_open_2130_ict\nFROM sessions\nGROUP BY month_start\nORDER BY month_start","computed_at":"2026-09-24T15:21:50.805454+00:00","elapsed":0.502931442}