Calculate the timestamp for the midnight just before the given timestamp.
If is is already midnight (down to the millisecond), this method will return the value for the previous midnight. In other words, you can call this method recursively in order to iterate, backwards in time, over midnights.
timestamp |
the Zeitgeist timestamp to find the previous midnight for |
the timestamp for the midnight just before the given timestamp |