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.

bricklove ,

At least most of us don’t need to worry about time dilation caused by relatively yet. Have fun with that, space faring developers.

Lightfire228 ,

We kinda do, with GPS satellites that have to correct their clocks due to the effects of gravity and speed

And communication with space probes

azvasKvklenko ,

It’s only bad when used incorrectly. Just store time in UTC and convert it to timezone of your setting to present it. Most modern languages offer a library that makes it just one more line of code. Not only it’s then clear and unambiguous, it supports all timezones.

TCB13 ,
@TCB13@lemmy.world avatar

+1 for this. This is kinda the same issue with encoding, just UTF-8 everything and move on.

scrubbles ,
@scrubbles@poptalk.scrubbles.tech avatar

bingo. Timezones became easier when I learned that all apps and databases should have all times be in UTC. Let the UI do it’s thing and accept local time and convert it, and vis versa.

dvlsg ,
@dvlsg@lemmy.world avatar

Doesn’t always work, especially if you need to work with any sort of calendar or recurring schedule.

booly ,

Yeah, timestamps should always be stored in UTC, but actual planning of anything needs to be conscious of local time zones, including daylight savings. Coming up with a description of when a place is open in local time might be simple when described in local time but clunkier in UTC when accounting for daylight savings, local holidays, etc.

greysemanticist ,

What if the only enabling factor to getting to Kardashev Type I is adoption of UTC for everything?

Yep, we’re doomed by the Great Filter.

MTK ,

Is GMT and UTC not the same? I’m happy to not have to code for timezones

BigMikeInAustin ,

It’s pretty simple, actually. A village somewhere in Europe that is completely in the shade all day for part of the year has already proven it.

Mirrors.

We just need a ring of motorized mirrors around the Earth.

At hour 0, the mirrors will rotate to show sun all across the entire Earth.

At hour 12, the mirrors will rotate to put all of the Earth into night time.

That lets the entire Earth have the exact same synchronized time synchronized with the daylight.

The mirrors will block the sun from parts of the earth facing during the night.

The mirrors will constantly be rotating to keep the proper amount of sun light facing each part of Earth as the Earth rotates.

The mirrors will be solar powered.

This will fix it, right?

narc0tic_bird ,

Sounds feasible.

SVcross ,
@SVcross@lemmy.world avatar

I don’t see any way whatsoever that could mean this project is not viable.

MrFunnyMoustache ,

The Year: 2092

The Problem: Timezones are annoying

The Solution: Space mirrors! A series of mirrors in space would rotate to keep the entire planet under a single time zone. A perfect global time system is born!

Sounds like a great idea! With the best of intentions. What could possibly go wrong?

stoy ,

There have been several concepts drawn up about using space mirrors as a way to focus the light from the sun into a deathray

MrFunnyMoustache ,

That was a nod to Great Moments in Unintended Consequences. (Example)

Live_your_lives ,

I got that reference! Surprised to see it out in the wild.

bountygiver ,

Alternatively, we have this arbitrary standard of 9am means morning, if we share a single universal time, different places would just have a different arbitrary time being the “morning” instead.

mojo_raisin ,

Or, we could collectively realize time is but an illusion and transcend this silly problem.

MajorHavoc ,

Lunchtime, doubly so!

dgriffith ,

Time is a cube, and always will be.

mojo_raisin ,

Dave!?

KillingTimeItself ,

i would aruge that the arbitrary factor of “9am being morning” is entirely to do with the fact that morning is actually a solar time phenomenon, whereas global time does not have the concept of morning, since it is merely imitating the local solar time.

Local solar time being the literal point in the sky that the sun is in.

It gets even funnier if we include people who aren’t “normal” I for one, consider noon to be morning.

BigMikeInAustin ,

We could keep the 0 hour as the “middle” of the night and 12 being the “middle” of the day (though I’m not sure if that’s really the sun’s high spot for the day for any places).

But with fully controlled mirrors, we could make it exactly 12 hours, so we could just then switch to the 0 hour being when the sun comes up.

AnarchistArtificer ,

Now I’m thinking about an ex-programmer supervillain who does this as her big foray into supervillainy

veganpizza69 ,
@veganpizza69@lemmy.world avatar

I fucking hate timezones. Whatever it is, I’d rather read the current clock as 4 a.m. even if it’s noon than have timezones.

gencha ,

Only freaks have AM/PM in their time system.

KinglyWeevil ,

24hr clock supremacy

letsgo ,

Well you can. Just switch your clock to UTC and you’re done. You won’t even have DST to deal with.

veganpizza69 , (edited )
@veganpizza69@lemmy.world avatar
cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

stardate superiority

Ziglin ,

You’ve got make sure you program the time machine correctly though…

xilona ,

😄

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

and bring enough stolen plutonium when you visit 1955

tibi ,

It could have been worse. The romans had the day divided into 24 hours, like we do, but the hours varied in length so that from sunrise to sunset, you would always have 12 hours.

Imagine if that was the agreed upon time system, and we had to program that into computers.

SkunkWorkz ,

It’s called temporal hour. Many cultures around the world had such a time system. Like in Japan they made clocks and watches that could tell temporal hours called wadokei.

numberfour002 ,

I would truthfully and happily go back in time and tell people not to waste with the fucked up bullshit technology of the past. I mean Angular 1, what the hell was that? Twitter integration? Fuck you 2010. Zend Framework? You should be hanged. HANGED.

uis ,

Worst is UTC vs IAT

Pieresqi ,

I actually like DST

NocturnalMorning ,

No you don’t, stop telling lies.

Pieresqi ,

I do 👍

Zagorath ,
@Zagorath@aussie.zone avatar

A lot of things that people like are bad and should not be public policy.

Some individuals feeling like they like DST doesn’t counteract its significant health detriments.

snugglebutt ,
@snugglebutt@lemmy.blahaj.zone avatar

well that’s a domain

Zagorath ,
@Zagorath@aussie.zone avatar

Sorry, I don’t know what you mean.

snugglebutt ,
@snugglebutt@lemmy.blahaj.zone avatar

1000002112

Just kinda silly

Zagorath ,
@Zagorath@aussie.zone avatar

Oh, I see. Yeah I suppose it is, now that you point it out. It comes from:

  • .gov: the US government
  • .nih: the US National Institutes of Health
  • .nlm: the National Library of Medicine
  • .ncbi: the National Center for Biotechnology Information

But really, I only know it because it’s a very common host that comes up when you’re searching for published research papers. I just see “bunch of Ns .gov” and know it’s reliable.

_sideffect ,

Conversion for metric system is a pita also

IrateAnteater ,

Which conversions? Most metric conversions are drastically simpler than their imperial counterparts.

_sideffect ,

From metric to others, of course.

DaGeek247 ,
@DaGeek247@fedia.io avatar

Nah. Metric should have just been base twelve.

cyborganism ,

Holy shit! Yes!!! Having worked with time sensitive data, it’s such bullshit.

Zagorath ,
@Zagorath@aussie.zone avatar

Dates and times aren’t that hard—honestly!

Video is a lecture about how to think about dates and times, through the lens of a specific open source .NET library designed to aid with applying that thinking. It points out how most languages’ standard libraries really work against you, because they conflate different concepts. For example, an Instant (a specific point in time, globally recognised) and a LocalDateTime (a date and time in a way that is irrespective of your location—for example you might want your alarm to wake you at 8:00 am on weekdays, and still do that if you move to a different time zone), a ZonedDateTime (a date and time tied to a specific location—like if you want to say “the meeting starts at 10:00 am Oslo Time”), and an OffsetDateTime (a date and time tied to a specific UTC offset—which is not necessarily the same as a time zone, because “Oslo Time” is a time zone that doesn’t change, but its UTC offset might change if they go in or out of DST, or if a place decides to change, like how Samoa changed from UTC-11 to UTC+13 in 2011.

These are all subtly different concepts which are useful in different cases, but most libraries force you to use a single poorly-defined “DateTime” class. It’s easier and requires less thought, but is also much more likely to get you into trouble as a result, precisely because of that lack of thought, because it doesn’t let you make a clear distinction about what specifically it is.

His library is great for this, but it’s very worth thinking about what he’s talking about even if you don’t or can’t use it. As he says in wrapping up:

You may be stuck using poor frameworks, but you don’t have to be stuck using poor concepts. You can think of the bigger concepts and represent all the bits without having to write your own framework, without having to do all kinds of stuff, just be really, really clear in all your comments and documentation.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines