Is there a way to generate all date strings between two timestamps?
For example, I have a earliest timestamp and a lastest timestamp of 1303887600(2011-04-27T00:00:00-07:00), 1325318400(2011-12-31T00:00:00-08:00)
, so I want from 2011-04-27
to 2011-12-31
.
If using a for
loop to convert timestamp to date, there is a switch between daylight saving time.