VA-11 Hall-A Bar
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@Samsy@lemmy.ml to Memes@lemmy.ml •
edit-2
2 years ago

2023-08-09.jpg

lemmy.ml

message-square
348
2.07K

2023-08-09.jpg

lemmy.ml

@Samsy@lemmy.ml to Memes@lemmy.ml •
edit-2
2 years ago
message-square
348
  • @gravitas_deficiency@sh.itjust.works
    link
    fedilink
    English
    71•2 years ago

    Nah man. Use 8601 for everything. They’re intrinsically chronologically sortable.

    • AtHeartEngineer
      link
      fedilink
      English
      6•2 years ago

      Or unix epoch time

      • @gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        15•2 years ago

        In a programmatic context? Sure.

        In an “I want to be able to comprehend this by glancing at it” context: absolutely not.

        2023-08-10 15:45:33-04:00 is WAY more human legible than 1691696733.

        • @orangeboats@lemmy.world
          link
          fedilink
          8•2 years ago

          What, you don’t remember your time in Unix timestamps? Filthy casuls.

          • @borstis@lemm.ee
            link
            fedilink
            2•2 years ago

            It’s super easy arithmetic too, just remember ”Pi seconds is a nanocentury.”

      • @railsdev@programming.dev
        link
        fedilink
        2•2 years ago

        Whenever I’m passing a date from a website backend to frontend I’ll usually send it inside something like <span> then have JavaScript convert it to a string based on the browser’s localization settings.

        So many websites I see for error reporting, etc always throw everything out as UTC and it drives me crazy. It would be nice to just have an HTML tag for ISO-8601 (or even UNIX as done here).</span>

        • @Feathercrown@lemmy.world
          link
          fedilink
          English
          3•
          edit-2
          2 years ago

          Your prayer has been answered! Hear ye:

          https://www.w3schools.com/tags/tag_time.asp

          • @railsdev@programming.dev
            link
            fedilink
            2•2 years ago

            That looks like it’s only useful for machine-readable dates so it wouldn’t be useful for killing off the JavaScript portion of my “hack.” I cry at night for this

        • @railsdev@programming.dev
          link
          fedilink
          2•2 years ago

          Looks like my code example glitched here. Basically a an HTML span tag with some CSS class for JavaScript to process.

Memes@lemmy.ml

!memes@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !memes@lemmy.ml

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
  • 772 users / day
  • 3.27K users / week
  • 7.26K users / month
  • 19.8K users / 6 months
  • 51.4K subscribers
  • 13.3K Posts
  • 267K Comments
  • Modlog
  • mods:
  • ghost_laptop
  • @sexy_peach@feddit.de
  • Cyclohexane
  • Arthur Besse
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org