Skip to content

Instantly share code, notes, and snippets.

@chrisalexander
Created February 18, 2017 16:59
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 chrisalexander/d3f4a505e8478aa73f8f41b3178c0d0d to your computer and use it in GitHub Desktop.
Save chrisalexander/d3f4a505e8478aa73f8f41b3178c0d0d to your computer and use it in GitHub Desktop.
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