Created
February 18, 2017 16:59
-
-
Save chrisalexander/d3f4a505e8478aa73f8f41b3178c0d0d 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
let getFormatPath (date : System.DateTime) format = | |
match format with | |
| PDF -> sprintf "http://www.nytimes.com/images/%i/%02i/%02i/nytfrontpage/" date.Year date.Month date.Day | |
| JPG -> sprintf "https://static01.nyt.com/images/%i/%02i/%02i/nytfrontpage/" date.Year date.Month date.Day |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment