• palordrolap@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    6 days ago

    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.)