Skip to content

Instantly share code, notes, and snippets.

@opyate
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opyate/8773005 to your computer and use it in GitHub Desktop.
Save opyate/8773005 to your computer and use it in GitHub Desktop.
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