Let me save you a few characters: %Y-%m-%d can be shortened to %F
For visualisation’s sake I also like to put a space before the %F so that the year and the file size are separated a little more, but that’s more of a taste thing than anything else.
(Caveat: %F’s year is explicitly four digits in some libraries, whereas %Y is always the full year. If you’re planning for your code to last 8000 years you might want to consider that.)
Let me save you a few characters:
%Y-%m-%dcan be shortened to%FFor visualisation’s sake I also like to put a space before the
%Fso that the year and the file size are separated a little more, but that’s more of a taste thing than anything else.(Caveat:
%F’s year is explicitly four digits in some libraries, whereas%Yis always the full year. If you’re planning for your code to last 8000 years you might want to consider that.)I’d be happy if my code made it 8 years