Last active
August 29, 2015 13:55
-
-
Save opyate/8773005 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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