---
title: "Discussion on \"Is the exchange open? Handling trading hours, holidays and DST across six markets\" | Hashnode"
description: "Discussion on \"Is the exchange open? Handling trading hours, holidays and DST across six markets\". Exchange hours in code: DST gaps, half days, split Friday sessions and holidays for NYSE, LSE, NSE, PSX, NGX and JSE, with zoneinfo and Intl examples."
url: "https://hashnode.com/posts/is-the-exchange-open-handling-trading-hours-holidays-and-dst-across-six-markets/6ad39da1ad133d10348ae019"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Is the exchange open? Handling trading hours, holidays and DST across six markets](https://tradinglookup.hashnode.dev/is-the-exchange-open-handling-trading-hours-holidays-and-dst-across-six-markets?utm_source=hashnode&utm_medium=feed)

Exchange hours in code: DST gaps, half days, split Friday sessions and holidays for NYSE, LSE, NSE, PSX, NGX and JSE, with zoneinfo and Intl examples.

Oct 17 · 8 min read · tradinglookup.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#python](https://hashnode.com/tag/python)
-   [#timezone](https://hashnode.com/tag/timezone)
-   [#datetime](https://hashnode.com/tag/datetime)
-   [#fintech](https://hashnode.com/tag/fintech)

## Written by

[TradingLookup](https://hashnode.com/@tradinglookup)

@tradinglookup · United Kingdom

  
[View profile](https://hashnode.com/@tradinglookup)

Building open datasets from what trading firms publish

Posts from the build side of TradingLookup: how we collect broker risk warnings, prop firm terms and official release calendars, how we check them twice, and how we ship them as clean CSVs under CC BY 4.0.

## Responses 1

Markdown supported · ⌘↵ to post

[Arnold Holm](https://hashnode.com/@stratcorealpha)

[Oct 18](https://hashnode.com/posts/is-the-exchange-open-handling-trading-hours-holidays-and-dst-across-six-markets/6ad39da1ad133d10348ae019/comment/6ad473c68dbd3f8c4c9a450f)

I would add a Friday-break test beside the early-close cases: a time between the two PSX sessions must return closed, then the second opening must return open. Selecting all sessions for the local trading date would avoid treating the gap as one continuous day. For a special Sunday whose hours are still unpublished, I would keep the result unknown rather than inherit either the regular schedule or the weekend closure.
