There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.world

akincisor , to programmer_humor in Implementing RFC 3339 shouldn't really be that hard...

There is one big caveat to universal time:

Future dates: If you use utc here and a time zone definition changes, you’re boned. You have to store local time and offset for just this one usecase.

Natanael ,

Store absolute time in something like Epoch (seconds since 1970-01-01) plus local time zone

carrylex OP ,
@carrylex@lemmy.world avatar

If you use utc here and a time zone definition changes, you’re boned

I’m pretty sure that things like the tz database exist exactly for such a case.

booly ,

The TZ database doesn’t tell us what the offsets will be in the future. Only the past.

BatmanAoD ,

Sorry, why would you be “boned” if you have UTC time? Are you thinking of the case where the desired behavior is to preserve the local time, rather than the absolute time?

umbraroze ,

Not exactly boned but it probably doesn’t make practical difference to store “local time + tzinfo timezone” than just UTC time.

  • You record an event occurring at local time
  • You store it as UTC
  • Local time zone definition changes
  • Well whoop de loo, now you need to go through tzinfo to make sense of the past data anyway rather than relying on a known offset

Even if you store everything in UTC, you may be safe… but figuring out the local time is still convoluted and involves a trip through tzinfo.

booly ,

I think the comment is specifically talking about storing future times, and contemplating future changes to the local time zone offsets.

If I say that something is going to happen at noon local time on July 1, 2030 in New York, we know that is, under current rules, going to happen at 16:00 UTC. But what if the US changes its daylight savings rules between now and 2030? The canonical time for that event is noon local time, and the offset between local time and UTC can only certainly be determined with past events, so future events defined by local will necessarily have some uncertainty when it comes to UTC.

modest_bunny ,

“boned”

nice word choice

el_abuelo ,

So many things would be fucked by a TZ change that it very rarely makes sense to consider it.

You’re making a calendar app? Fuck it…some folks are gonna get confused…solved by simply emailing your users and telling them to reschedule shit because there’s kind of a big event going on that everyone knows about and has been planning for for years. Hell in all liklihood this is probably easily solved by simply doing a mass migration of events scheduled before the TZ change.

You’re coding for nuclear weapons? Maybe consider it. But probably not.

That is to say: there are ways to solve problems without resorting to writing the most complicated bullshit code ever seen. Unless of course you work on my team - in which case you’d be right at home.

tiredofsametab , (edited ) to insanepeoplefacebook in A universal force once reigned. It taught humanity the secret of the triangle.

I've been going down a rabbit hole trying to get to the source of the Japanese one. It's a marker at a shrine with the old name of the shrine, apparently, and no longer has the hexagram. That's all the further I could get before work, but it shows up in weird conspiracy-like blogs with arbitrarily-drawn hexagrams on maps (using the location of things today despite, y'know, the shrine variously having been purported to move, and some saying the thing was sealed away for over 2000 years which has a whole host of other issues). I'll report back if I get sufficiently bored. I have a feeling that, short of contacting the actual shrine, I'm not going to get very far. Even the various shrine and tourism websites are mostly dead links that I have to find by searching again on the base tourism site.

edit: This seems like a more sensible site explaining what a hexagram meant previously in Japan (basket weave pattern) https://cultural-experience.blogspot.com/2015/01/blog-post_8.html and addresses the "Japanese people came from the lost tribes" myth that was apparently dreamed up by a Scottsman in the past.

HUMAN_TRASH , to memes in 5:57 am and dreading the possible inevitabilities

Something, something broken arms?

Wirlocke , to insanepeoplefacebook in A universal force once reigned. It taught humanity the secret of the triangle.

It’s not like these societies were completely disconnected from each other (except Japan). Remember even people in the past borrowed things from their history for their beliefs. The entirety of Hermeticism is the fusion of Greek and Egyptian beliefs for example (Hermes and Thoth specifically).

tiredofsametab ,

Japan wasn't even disconnected. They traded with China, sent missions there, etc.

They were more disconnected during the sakoku policy, but they still had traders coming in (Chinese, Korean, and I think Dutch) even if they all had to trade from Dejima. Rangaku (the Ran here coming from hoRANda (holland) and gaku (study)) was quite popular even during this time and before the opening leading up to the Meji era.

DragonTypeWyvern ,

Traded heavily with China for obvious reasons. And the Silk Road began in China and ended on the Eastern Mediterranean coast. Every single one of these areas was directly connected by the most famous trade route in history.

ReputedlyDeplorable , to insanepeoplefacebook in A universal force once reigned. It taught humanity the secret of the triangle.
joe , to cat in She looks very dragon-like

Just, fluffier

AstralPath , to cat in *Tips Fedora*

Curly paws = best paws.

Sphinxes are dope. Mine is a cuddle monster too. He’s very needy. Also completely insane. I love it.

MeetInPotatoes , to memes in 5:57 am and dreading the possible inevitabilities

Unsend a message in iOSUnsend a message on Whatsapp

I’m sure it’s past your time now, but if we raise awareness, perhaps we can save one person together…

TexasDrunk , to insanepeoplefacebook in Sovcit wants to wreck his kid's life.

Ok, I make a lot of jokes in this community. I make a lot of jokes on the internet in general because I’m just a drunk looking to have a good time.

However, I really think I know this guy. Well, kind of. If it’s who I’m thinking of his girlfriend used to be part of my friend group. She’s pregnant and ready to pop. If it’s who I’m thinking of it’s her 7th or 8th kid. After the first few she got into the antivax stuff pretty heavily, then went completely off the deep end with conspiracies and SovCit stuff because her boyfriend at the time was into it and, unbeknownst to everyone around at the time, it seemed to work for him because his very rich parents funded all his shit and paid all his debts.

If this isn’t who I’m thinking of it still hits really close to home.

BonesOfTheMoon OP ,

Oh wow.

nothacking , (edited ) to insanepeoplefacebook in A universal force once reigned. It taught humanity the secret of the triangle.

The number 6 is quite nice. It has a lot of factors and is also the smallest perfect number. Unsurprisingly, it shows up everywhere in a number of religions. People might easily have started with the number 6 and designed the star to go along with it. While it was harder to travel thousands of years ago, people did and it only takes one to bring back a design like this.

We can trace every script in Europe, Africa and Asia back to just three, one from Mesopotamia (3400 BC), another from Egypt (3250 BC) and the third from China (1200 BC). If writing was able to make it’s way to almost every single culture on three continents, a 6 pointed star certainly can.

Lost_My_Mind , to aww in Sisu

Dog: “I am the ruler of this field. When the time comes, I shall arise from my comfort, and do zoomies all over the place!

Until then, I do NOT trust that squirrel. Looks shifty eyed to me!”

Hegar , to internetfuneral in Dont look back, but also dont look forward
@Hegar@fedia.io avatar

When I was learning to drive at the age of 30, the first time I went on the highway, my friend teaching me flipped the rear view mirror up and sternly declared, "Never look back."

Gormadt ,
@Gormadt@lemmy.blahaj.zone avatar

That’s terrible advice

You should always be absolutely vigilant of your surroundings and checking your mirrors often. Especially on the highway.

The roads are full of people who shouldn’t have a driver’s license and your goal is to not have to find out how bad their insurance is.

Hegar ,
@Hegar@fedia.io avatar

Yep, for sure. She was making a very specific point at the time, about not letting cars behind you pressure you into going faster than you feel comfortable.

Gormadt ,
@Gormadt@lemmy.blahaj.zone avatar

Ah yeah now that’s good advice right there

Don’t let them pressure you, they’re in a hurry not you. And if you’re going too slow for them they’ll eventually go around.

agavaa , to aww in Sisu

Majestic

muntedcrocodile , to programmer_humor in Implementing RFC 3339 shouldn't really be that hard...
@muntedcrocodile@lemm.ee avatar

Unix timestamp or death.

carrylex OP ,
@carrylex@lemmy.world avatar

Well if it’s a 32bit timestamp you’re screwed after 19 January 2038 (at 03:14:07 UTC)

el_abuelo ,

Maybe they’re planning on dying before then? In which case they’re fine.

PlexSheep ,

I don’t think modern systems use 32bit stamps anymore, the ones that do are built to fail

vox ,
@vox@sopuli.xyz avatar

i don’t think json is guaranteed to parse 64 ints by spec tho, unless you store them as strings

boredsquirrel , to internetfuneral in Dont look back, but also dont look forward
@boredsquirrel@slrpnk.net avatar

Italian Batman and Robini

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines