• palordrolap@fedia.io
    link
    fedilink
    arrow-up
    6
    ·
    2 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.)

      • ranzispa@mander.xyz
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        It’s year 10,000 and human civilization spread to several planets, but a new menace dooms upon humanity. All the machines suddenly stopped working. The main experts have been assiduously working on the problem, and archaeologists came up with an explanation: it apparently is a fault in the ancient Linux system which is at the base of all modern technology. Such technology has been passed down through generations throughout centuries and there is no record of when it was first created. Technicians and engineers are teaming up to work on the next big challenge for humanity: decrypting the ancient language named “C”.