
Over the years, I've accumulated a lot of small PHP projects that are in varying stages of their maintenance lifecycle. Sometimes they feel like overgrown cars lying in a fallow yard, wheels gone, propped up on blocks, forgotten. I'm getting around to improving them, but occasionally I hit roadblocks.
Right now, a tiny but annoying roadblock is PHP 8.1's deprecation of the strftime()
function. One of my Whateverthing projects uses it a handful of times in various ways. I need to find an alternative pattern to replace it, one which is either brief and low-effort, or more robust but available to all the sections of the codebase.