UTC is not the same as GMT, although for humans telling the time they're similar enough.
Set your alarms for 2.40am UTC – so you can watch Unix time hit 1,500,000,000
At 0240 GMT* precisely on Friday, July 14, an epoch-defining moment will happen. And only real nerds – along with Reg readers – will know what that moment is. The Unix epoch will pass its 1.5 billionth second in the small hours. A quick check with everyone's favourite scripting language, Perl, confirms this: $ perl - …
COMMENTS
-
-
-
This post has been deleted by its author
-
-
Friday 14th July 2017 07:19 GMT Anonymous Coward
Bard metres (preferably sung since the Late Bronze Age Collapse), shurely?
That would be epic. And hellenistic.
-
-
Friday 14th July 2017 12:17 GMT Missing Semicolon
Damn right their not!
For those of us old enough to remember programming with Java1.4, the confusion of GMT and UTC meant that Java programs running in the UK had no DST support. The only +00:00 time zone at the time was GMT, and that (being international) had no summer time.
In the UK, you had to create a new time zone object that had the UK BST rules in it.
For. Every. Bloody. Program.
-
-
-
Friday 14th July 2017 04:39 GMT Wensleydale Cheese
Re: Already??
"It seems like only yesterday that we had the 'billennium', where Unix timestamps went from 9 decimal digits to 10 and broke some locally-developed stuff."
More than 20 years ago. May 1997.
Even VMS, which doesn't use Unix timestamps itself, needed patches to stuff which had its origins on Unix, like X11.
-
-
Friday 14th July 2017 09:53 GMT Anonymous Coward
Re: Already??
I suddenly feel very old...
Try this one if you want to feel extremely old. The period of time between the start of the First World War and your birth, compared with your age.
My age is greater than that. By over 20 years.
(Of course, that works for anyone over the age of 52)
-
Friday 14th July 2017 10:46 GMT Anonymous Coward
Re: Already??
"Try this one if you want to feel extremely old."
I prefer to feel overwhelmingly pointless since its impossible for me tontruly be old in a universal sense.
For example, consider how many possible planets there are out there and how many might have life, how many had life, and how many existed and continue to exist despite life and whether life was necessary in the process of being a planet.
You at the back there. Put the phone down.
Nothing matters. We're all going to die and ultimately everything we do amounts to nothing.
-
Friday 14th July 2017 12:18 GMT CrazyOldCatMan
Re: Already??
Nothing matters. We're all going to die and ultimately everything we do amounts to nothing.
On a more positive note - at least that means that all politicians, everywhere, are even more useless than we already thought.
And I'll leave you with the final comforting thought from Del Amitri:
#Nothing ever happens, nothing happens at all
#The needle returns to the start of the song
#And we all sing along like before
#And we'll all be lonely tonight and lonely tomorrow
-
-
Friday 14th July 2017 12:15 GMT CrazyOldCatMan
Re: Already??
Try this one if you want to feel extremely old. The period of time between the start of the First World War and your birth, compared with your age.
My age is greater than that. By over 20 years.
(Of course, that works for anyone over the age of 52)
Well - that means I'm safe (until next Feb)..
-
-
-
-
-
Friday 14th July 2017 10:25 GMT Anonymous Coward
Ugh. Timeghost...
@Thommy M.; No idea who modded you down; I was sitting looking at the 1997 date and thinking "hang on, twenty years back has to be way more than a third of the way to 1970"...
@Anonymous coward; Fun fact for baby boomers- Cliff Richard's debut single "Move It" came out in 1958, closer to the final years of the Victorian era and the end of the 1800s than to the present day.
Obligatory XKCD! Plus this.
-
Friday 14th July 2017 10:47 GMT Anonymous Coward
Re: Ugh. Timeghost...
(Same AC as one who posted Timeghost comment, my editing time ran out...)
@Anonymous coward; Also, at around 61.5 years old, you're still quite a bit younger than my Dad. :-O
Also, Sgt. Pepper came out closer to the end of the First World War than to the present day...
Also also also... for those who (like me) remember "You Spin Me Round" by "Dead or Alive" in the charts as kids, it hit number 1 in the UK 32 years and 4 months ago, closer to the release of the first widely successful rock n' roll record than to the present day.
(Bear in mind that when I was a kid, twenty-year-old black and white footage of (e.g.) The Beatles seemed ancient, and rock n' roll was before that- and to be fair, 30 years *is* a long time, you just forget that "You Spin Me Round" is now that old too... ouch.)
-
This post has been deleted by its author
-
Friday 14th July 2017 12:20 GMT CrazyOldCatMan
Re: Ugh. Timeghost...
for those who (like me) remember "You Spin Me Round" by "Dead or Alive" in the charts as kids, it hit number 1 in the UK 32 years and 4 months ago
I never got the hang of new-fangled music like that..
(I jest - currently listening to Transatlantic live in Tilburg. Fine, modern prog[1] music)
[1] If that's not an oxymoron..
-
Friday 14th July 2017 13:21 GMT Anonymous Coward
Re: Millenials
One of my Granddaughters friends asked who Jimmy Hendrix was.
My GD sniggered. She's had a proper music education as she's going to study it at Uni.
The friend thought that 1970 was in the stone age. At least then the musicians actually played their instruments and you knew it if they missed a note (no effing auto-tune then).
The friend was amazed at:-
1) That Hyde Park concerts existed then
2) How little a gig cost to go to and that you didn't have to book a year in advance or pay a booking fee.
My how times were much simpler then. And the music was better.
Time for me to get my zimmer frame then.
-
-
-
Saturday 15th July 2017 06:12 GMT HelpfulJohn
Re: Jesus!
Both of my parents were young children, just pre-teens, when the last soldier to fight in the USAlien Civil War died.
That was in 1938. Just before the Second World War really got its skates on and began to involve the "important" countries.
There was only one long human lifetime between the American Civil War and WWII.
-
-
-
-
-
-
-
Thursday 13th July 2017 19:50 GMT Anonymous Coward
Re: It can go on
That sounds amazing.
I've toyed with the idea of non-ftl space flight sci-fi and wrote a short story. I skipped commenting on the specifics of space travel, other than the fact it takes 30-60 years for the closest next point of interest (assuming constant 1g acceleration and deceleration to a 1-3ly away star).
If I ever continue the story, there will be little to no external contact for the life off the colony. With the exception of materials/fuel trade (though in reality any system would hold more than enough of either and never need materials/energy trade).
-
-
-
-
Saturday 15th July 2017 06:27 GMT HelpfulJohn
Re: If you've mastered that sort of power plant the universe is, indeed, yours.
Some political committee is going to authorise at least one, probably with a submarine probe, probably one not totally sterilised. Then our chance of ever knowing if Europan life existed will be gone forever.
"Europan", not "European". We already know that Brexit has killed the latter.
-
-
-
Saturday 15th July 2017 06:19 GMT HelpfulJohn
Re: It can go on
Strangely, reaching 1C, (a hair short of) the speed of light takes almost exactly one year at one g.
It's nice when the universe makes the numbers easy.
She doesn't do it very often.
It's also a little spooky that Earth's gravity, Earth's orbital period and the ultimate speed limit are coincidentally related.
-
-
Friday 14th July 2017 07:43 GMT Anonymous Coward
Re: It can go on
With the exception of materials/fuel trade (though in reality any system would hold more than enough of either and never need materials/energy trade).
Who is to say what the distribution of elements and materials might be across different systems until we start to explore them. Carbon is abundant on earth, but only a small proportion is present as diamond. Helium-3 is mooted as a handy fusion fuel, but in a system comprised only of rocky earth-sized planets would be scarce.
Good luck with the story telling - there's plenty of scope for fiction out there :-)
-
Friday 14th July 2017 09:33 GMT DJO
Re: It can go on
Constant Acceleration at 1G is impossible for more than a few months.
From stationary in 353 days 19 hours 45 minutes 23.004 seconds at a constant 1G you'd attain c which is not allowed.
If you had an engine capable of producing a constant 1G which would also provide the illusion of gravity which would be nice for the crew, the trick would be to keep turning the ship around so you oscillate between (say) 0.75c and 0.9c so you'd still be prety fast but the time dilation would not be excessive and you'd have gravity (except when turning the ship) for the entire journey so no bone or muscle wasting.
-
-
Friday 14th July 2017 09:40 GMT Brangdon
Re: subluminal space flight
You might also be interested in Karl Schroede's Lockstep, Their spacecraft crew spend the journeys asleep, and the colonists adapt the same technology so they sleep during the period of no external contact. (While they sleep, robots mine the resources needed to sustain them when awake, thus allowing them to survive on marginal outer solar bodies.)
-
-
-
-
Thursday 13th July 2017 20:09 GMT Paul Crawford
Re: Year 2106
Some system's C time libraries act as if they use unsigned internally so they work fine post-2038, but others are more pedantic or just obstinate and consider the "negative signed" range as invalid.
Certainly its a simple fix for a while for cases where you have a 4-byte space only (e.g. structures that have to map to a file) or some embedded stuff where 32-bits is still used to avoid the speed/power penalty of emulating 64-bit maths generally.
-
Friday 14th July 2017 12:43 GMT Anonymous Coward
Re: Year 2106
Another approach is to officially define your time representation as cyclic: time is recorded modulo 2^32 seconds (or whatever) and disambiguation is left for someone else to sort out using whatever information is available from other sources. I think that approach was adopted for GPS timestamps, with a time period that is considerably shorter than 2^32 seconds, but still longer than any period over which people make precise (military) plans. The disadvantage is that you can never ask whether time A is before or after time B: it's always both.
-
-
Thursday 13th July 2017 19:51 GMT hellwig
Signed Integer
Uh, for an absolute value, why would you store that in a signed integer? In what scenario is a negative time since epoch useful? An unsigned integer would have given 136-some years of reliability.
I don't think we're talking in quantum terms here, and even then, is negative time/duration possible? Why would Unix dare to challenge the fundamental principles of our universe?
-
-
Thursday 13th July 2017 20:04 GMT Paul Crawford
Re: Signed Integer
"So you can represent dates before 1970"
Not really, as many time_t related stuff uses -1 to indicate an error.
You have to remember that the likes of time_t was created for the computer's sense of linear time (for more general uses where date/time format was commonly used) so UNIX creators cared not about pre-1970 and 1970 was therefore as good an epoch as any since 32-bits (or 31 really) put the range so far in the future that no one cared. Similarly DOS time and FAT file systems don't do pre-1980.
-
Thursday 13th July 2017 22:19 GMT heyrick
Re: Signed Integer
"So you can represent dates before 1970."
Which would be good if it worked... Many moons ago I wrote some code to deal with ages. It worked fine for me, I was born in '73. My friend can along and broke it (born in '68) and there was no way the library was going to accept anything before 1970. In the end I wrote my own time library counting minutes from 1900 (seconds weren't relevant).
-
-
-
Friday 14th July 2017 13:53 GMT hellwig
Re: Signed Integer
When someone says "time me", do you respond with "Dec 16, 2004"? That's not a meaningful response.
Time and Date are not synonymous.
The TIME since Epoch is an absolute. Date is a different interpretation of a fact. And as many others have pointed out, negative time is not supported by the same mechanisms that use a signed integer for time.
Also, say you were a developer on Unix in 1970, and you wanted to show off your new time feature using Dates, and your 70-year-old boss/professor tried to enter their birth date. It would not have worked. So I can't imagine that negative time to represent past dates was seriously considered. It's one thing to think "no one 68+ years from now will still be using this system." it's entirely different to say "No one will ever need to store a date prior to 1902."
So, I stand by my statement.
-
-
Friday 14th July 2017 15:15 GMT Colin Miller
Re: Signed Integer
@hellwing
Uh, for an absolute value, why would you store that in a signed integer? In what scenario is a negative time since epoch useful? An unsigned integer would have given 136-some years of reliability.
Using a signed time_t allows you to use time_t for both datetime, and for a duration. This is useful in procedural languages like C, however most OO languages use a separate DateTime and Duration types.
-
Monday 17th July 2017 16:46 GMT Destroy All Monsters
Re: Signed Integer
Using a signed time_t allows you to use time_t for both datetime, and for a duration. This is useful in procedural languages like C, however most OO languages use a separate DateTime and Duration types.
That has nothing to do with OO vs. procedural.
It's just what you want your bit pattern to MEAN.
-
-
-
Thursday 13th July 2017 20:21 GMT Alistair
umm
[noydb log]# date -d @1500000000
Thu Jul 13 22:40:00 EDT 2017
[noydb log]# date -d @9999999999
Sat Nov 20 12:46:39 EST 2286
[noydb log]# date -d @10000000001
Sat Nov 20 12:46:41 EST 2286
well - F25 is not seeming to be a problem. Only reason I checked here is that I thought the int/uint bit would be a wee bit further out than 2038. However I'm on a 64bit fedora:
Win7. hehehehehehehehe. nope, not going there. Even on 64bit win7. sad really.
-
-
-
Thursday 13th July 2017 23:01 GMT Kernel
"Only downside to early Friday beers is that it's flippin' freezing in NZ right now."
Yes, I have noticed that minor defect - mainly because the cat has spent the last 2 days inside asleep!
Mind you, freezing or not, I'm still looking forward to a brisk walk to a good Irish pub and a few of the 'black stuff' with appropriate music in about 6 hours
-
Thursday 13th July 2017 23:31 GMT Mage
I may have a problem Huston
perl -MDateTime -lE'say DateTime->from_epoch( epoch => 1_500_000_000 )'
Can't locate DateTime.pm in @INC (you may need to install the DateTime module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .).
BEGIN failed--compilation aborted.
-
Friday 14th July 2017 01:52 GMT Jamie Jones
I'm that saddo!
Our thanks for the tipoff go to Reg reader Jamie (among others), who "thought some other saddos reading may be interested!" There's nothing sad about studying Unix timestamps, Jamie.
W00T My name is El Reg lights!
Maybe you're correct, but I'm definitely a saddo for this comment!
-
Friday 14th July 2017 13:00 GMT mikecoppicegreen
Time, as they say, is Relative....
What follows is arguably the most famous single sequence in any Goon Show. The show is The Mysterious Punch-up-the-Conker (series 7, episode 18). About 25 minutes in the show, Bluebottle and Eccles are "in the ground floor attic" of a clock repairers. After listening to lots of timepieces ticking, chiming, cuckooing etc. for a while...
Bluebottle What time is it Eccles?
Eccles Err, just a minute. I, I've got it written down 'ere on a piece of paper. A nice man wrote the time down for me this morning.
Bluebottle Ooooh, then why do you carry it around with you Eccles?
Eccles Well, umm, if a anybody asks me the ti-ime, I ca-can show it to dem.
Bluebottle Wait a minute Eccles, my good man...
Eccles What is it fellow?
Bluebottle It's writted on this bit of paper, what is eight o'clock, is writted.
Eccles I know that my good fellow. That's right, um, when I asked the fella to write it down, it was eight o'clock.
Bluebottle Well then. Supposing when somebody asks you the time, it isn't eight o'clock?
Eccles Ah, den I don't show it to dem.
Bluebottle Ooohhh...
Eccles [Smacks lips] Yeah.
Bluebottle Well how do you know when it's eight o'clock?
Eccles I've got it written down on a piece of paper!
Bluebottle Oh, I wish I could afford a piece of paper with the time written on.
Eccles Oohhhh.
Bluebottle 'Ere Eccles?
Eccles Yah.
Bluebottle Let me hold that piece of paper to my ear would you? - 'Ere. This piece of paper ain't goin'.
Eccles What? I've been sold a forgery!
Bluebottle No wonder it stopped at eight o'clock.
Eccles Oh dear.
Bluebottle You should get one of them tings my grandad's got.
Eccles Oooohhh?
Bluebottle His firm give it to him when he retired.
Eccles Oooohhh.
Bluebottle It's one of dem tings what it is that wakes you up at eight o'clock, boils the kettil, and pours a cuppa tea.
Eccles Ohhh yeah! What's it called? Um.
Bluebottle My granma.
Eccles Ohh... Ohh, ah wait a minute. How does she know when it's eight o'clock?
Bluebottle She's got it written down on a piece of paper!