Skip to content

Instantly share code, notes, and snippets.

@opyate opyate/england-pub-hols.sh
Last active Aug 29, 2015

Embed
What would you like to do?
for D in $(curl https://www.gov.uk/bank-holidays.json | \
jq '.["england-and-wales"].events[] | .date') ;do \
echo "new DateTime($D)," ; done
# Renders this:
new DateTime("2012-01-02"),
new DateTime("2012-04-06"),
// ... snip
new DateTime("2015-12-28"),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.