Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669026yGreat, more time zones to deal with, and time-offsets.
If(planet() == "mars"){
return currentMarsTimeForUser();
// this does some funky calculations based on current earth UTC + offsets and planet rotation speeds.
}
Else{
return currentEarhTimeForUser();
// this is just the usual stuff for working out where and when our user is in the world - excluding time machines
} -
-
vane110526y@Alice First we need make people survive in space without external supplies. Won’t happen soon.
-
Parzi86636ynot only will this be able to be added to standard time libs, they will most likely use UTC or GMT as they'd have to deal with Earth and only Earth.
-
Root797706yThe time calculation libraries will probably start including an optional velocity param to allow calculating time dialation while in transit.
I do wonder how time calc will work in the future when we need to convert between e.g. UTC and probes / space craft in proximity to gravity wells, or moving at very high velocities. Then again without ftl communication, that's all pretty pointless. -
Quirinus7526yOh god it will have to include general relativity and the path of major celestial bodies in the Solar system. I guess the best approach would be to precalculate some datetimes and interpolate between them using a simplified general relativity thingy.
-
shine9676yThat's when the phrase "it's not rocket science" will actually make some difference and mean something.
Related Rants
When we finally get to Mars, all programmers on Earth will scream in pain over having to program another timezone
rant
wtf
wk161
programmer
random
developer
devrant