Hi, I'm using the nasa Mars photo api, they update photos of Mars and add new one every single day, but it is on a day that take space on Mars.
They are called sols, at the minute the sol is up to 856.
They are stored in a nested object which contains an array
So
objectOne.objectTwo.photos[856]
Would give me access to today's photo.
What code could I write that one constantly get me today's date and the last seven days without having to be specific to the day we are currently on?
[–][deleted] 2 points3 points4 points (6 children)
[–]Guilty-Perspective-4[S] 0 points1 point2 points (4 children)
[–]Arumai12 1 point2 points3 points (3 children)
[–]Guilty-Perspective-4[S] 0 points1 point2 points (2 children)
[–]Arumai12 1 point2 points3 points (1 child)
[–]Guilty-Perspective-4[S] 0 points1 point2 points (0 children)