in reply to Re^2: Yesterday's date
in thread Yesterday's date

Note that this approach will have a problem for those days with less than 24 hours

That's not true. Or rather, there are no days with less than 24 hours when dealing with UTC, as the parent code does.