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