Re:Things I learned while developing a billing system
by PeterisP on Monday April 05, 2021 @05:02PM
(#26704692)
For additional fun, consider how this would work with the added constraint of needing the date be a business day, so you need to take into account how weekends (which vary across the world, by the way; in a bunch of countries sunday is a business day but friday is off) and banking holidays in every locale in which you do business.
[ Parent
| on HN ]
Re:Things I learned while developing a billing system
by notimpotent on Monday April 05, 2021 @05:31PM
(#26704966)
First time learning that weekend days vary by country. I looked up [1] some of the more curious ones.
Brunei weekends are Friday and Sunday. Those poor folks work Mon-Thurs, and then go back to work Saturday!
Re:Things I learned while developing a billing system
by thaumasiotes on Monday April 05, 2021 @06:39PM
(#26705555)
For reference, in China there are a bunch of legally mandated holidays that convert the weekend days around them into normal working days. (The conversion is not legally mandated; think of it as a response to laws that generate many more holidays than the economy supports.)