drzax / australian-daylight-savings

A list of historical daylight savings change over dates/times.

Scrapes www.bom.gov.au

Bureau of Meteorology web homepage provides the Australian community with access to weather forecasts, severe weather warnings, observations, flood information, marine and high seas forecasts and climate information. Products include weather charts, satellite photos, radar pictures and climate maps. The Bureau also has responsibility for compiling and providing comprehensive water information across Australia.


Australian daylight savings periods

This code scrapes the Australian Bureau of Meteorology's information page on daylight savings and creates a computer readable dataset of historical daylight savings start and end dates.

There are plenty of caveats that go with this data if you're using it for any serious purpose. It doesn't even attempt to take account of all edge cases and anomalies.

Data

Start and end dates are output in ISO8601 format at UTC which is mildly annoying for a human, but no trouble for computers.

Get the data via morph.io.

Improvements

Pull requests are most welcome. As noted by the BOM, this is in no sense an official list of Australian DST periods, however it is the best source I've found.

Each state government has separate responsibility for implementing daylight savings and as a result there doesn't appear to be a centralised source of historical timezone data in Australia. If you can find a better source, contact me.

Running

This is a scraper that runs on Morph. To get started see the documentation. You can also run it locally if you have Node.JS installed by cloning this repository.

git clone https://github.com/drzax/morph-australian-daylight-savings.git cd morph-australian-daylight-savings npm i node scraper

This will deposit data.sqlite in the project root.

Contributors drzax

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... Injecting scraper and running...

Data

Downloaded 4 times by MikeRalphson dotnetnoobie

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (19 KB) Use the API

rows 10 / 265

state start end notes
WA
1916-12-31T18:00:00.000Z
1917-03-24T19:00:00.000Z
ACT
1916-12-31T16:00:00.000Z
1917-03-24T17:00:00.000Z
VIC
1916-12-31T16:00:00.000Z
1917-03-24T17:00:00.000Z
SA
1916-12-31T16:30:00.000Z
1917-03-24T17:30:00.000Z
TAS
1916-12-31T16:00:00.000Z
1917-03-24T17:00:00.000Z
WA
1941-12-31T18:00:00.000Z
1942-03-28T19:00:00.000Z
NT
1941-12-31T16:30:00.000Z
1942-03-28T17:30:00.000Z
QLD
1941-12-31T16:00:00.000Z
1942-03-28T17:00:00.000Z
NSW
1941-12-31T16:00:00.000Z
1942-03-28T17:00:00.000Z
ACT
1941-12-31T16:00:00.000Z
1942-03-28T17:00:00.000Z

Statistics

Average successful run time: less than a minute

Total run time: 3 minutes

Total cpu time used: less than 10 seconds

Total disk space used: 49 KB

History

  • Manually ran revision 87fa5ea0 and completed successfully .
    265 records added in the database
    1 page scraped
  • Manually ran revision 87fa5ea0 and failed .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 1ed59ccd and failed .
    nothing changed in the database
    1 page scraped
  • Manually ran revision 35fb4fc5 and completed successfully .
    266 records added in the database
    1 page scraped
  • Created on morph.io