Converting dates to OOlite timecode.

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Converting dates to OOlite timecode.

Post by maaarcooose »

How does the time display relate to standard dates?

I'm just trying to work out what format they take and how they relate.

For example, what would 25th May 3146 be in oolite time clock?

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Converting dates to OOlite timecode.

Post by Cody »

<chortles>
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Converting dates to OOlite timecode.

Post by maaarcooose »

I've asked a stupid question haven't I?

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Converting dates to OOlite timecode.

Post by cim »

maaarcooose wrote:
How does the time display relate to standard dates?
The time display is in days since the start of the calendar. There have been 2084004 of those days at the start of the game, or approximately 5700 Earth years.

There is no specification of how these relate to Earth dates. If you want to take "about 50-60 years before Frontier" as the time period that Oolite is set, then this would put the start of the calendar at around 2560 BC. Why then? Who knows. It's very roughly the time the Great Pyramid of Giza was being constructed.

If you aren't tying yourself to Frontier chronology then put the start of the epoch wherever you like. Personally I would say, based on the data shown on the F7 screens, that Oolite is set some time between 4000 AD and 9000 AD with 7500 AD probably being about right. But I don't expect anyone else to agree with the very long and somewhat tenuous chain of logic which suggests that!
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Converting dates to OOlite timecode.

Post by Cody »

<chuckles>
cim wrote:
It's very roughly the time the Great Pyramid of Giza was being constructed.
Stonehenge too, I think.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Converting dates to OOlite timecode.

Post by maaarcooose »

Okay. :?

I was looking at the timeline stuff and also basing on some of the fiction as to what date it's set in which I suppose is linked to Frontier chronology.
Frontier is not something that particularly appears on my radar so screw it.

Right, thanks, that clears it up for me anyway.

<rapidly starts doing some tenuous calculations>

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Converting dates to OOlite timecode.

Post by Cody »

maaarcooose wrote:
Frontier is not something that particularly appears on my radar so screw it.
<nods happily>
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Converting dates to OOlite timecode.

Post by Smivs »

maaarcooose wrote:
...linked to Frontier chronology.
Frontier is not something that particularly appears on my radar so screw it.
Indeed. Just as for us today in RLTM, the future is an unknown. Stick to the past and present we know. :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Converting dates to OOlite timecode.

Post by another_commander »

You may find this useful to include in your script if you are trying to do RL-like date calculations within Oolite:

Code: Select all

this.shipWillLaunchFromStation = function()
{
	player.commsMessage(this.$setDateSince(3125, 2, 21)); // any date you want to start countring from
}


this.$setDateSince = function(year, month, day)
{
	var testDate = new Date();
	testDate.setFullYear(year, month, day);
	
	var secondsPassedTotal = clock.seconds - 2084004 * 86400.0;
	var hoursPassed = Math.floor(secondsPassedTotal / 3600);
	var minutesPassed = Math.floor((secondsPassedTotal % 3600) / 60);
	var secondsPassed = Math.floor(secondsPassedTotal % 60);
	
	testDate.setHours(hoursPassed);
	testDate.setMinutes(minutesPassed);
	testDate.setSeconds(secondsPassed);
	
	return testDate.toLocaleString();
}
User avatar
Geraldine
Deadly
Deadly
Posts: 203
Joined: Tue May 08, 2012 8:39 pm
Location: Sunny Scotland. Anarchy System Tech Level 0 No Police Presence. Enter At Own Risk!

Re: Converting dates to OOlite timecode.

Post by Geraldine »

I always use the 20th September 1984 as the start date as that was the date Elite was first released. :D
Geraldine
Elite IV Is Released. Now Keeping The Faith in Oolite, Pioneer & FFE3D :D
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Converting dates to OOlite timecode.

Post by JensAyton »

another_commander wrote:

Code: Select all

player.commsMessage(this.$setDateSince(3125, 2, 21)); // any date you want to start countring from
N.B.: Because of an insane design decision in JavaScript – one of the few things that actually comes from Java – 3125, 2, 21 means the 21st of March. Months are numbered 0–11, but days are numbered 1–31.
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Converting dates to OOlite timecode.

Post by maaarcooose »

Ahruman wrote:
another_commander wrote:

Code: Select all

player.commsMessage(this.$setDateSince(3125, 2, 21)); // any date you want to start countring from
N.B.: Because of an insane design decision in JavaScript – one of the few things that actually comes from Java – 3125, 2, 21 means the 21st of March. Months are numbered 0–11, but days are numbered 1–31.
Yes, I remember this from when I was teaching myself java & javascript (a mere 18 years ago) and trying to write a clock in applet.
Geraldine wrote:
I always use the 20th September 1984 as the start date as that was the date Elite was first released. :D
I also really like the idea of that.

Suddenly I find I'm trying to come up with some sort of time zone space for my fiction.
I definitely want to try and keep it in the OOlite era.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: Converting dates to OOlite timecode.

Post by Zireael »

Hmm, is there an OXP which would display the time in Earth-like days and months instead of this **** timecode?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Converting dates to OOlite timecode.

Post by Commander McLane »

Zireael wrote:
Hmm, is there an OXP which would display the time in Earth-like days and months instead of this **** timecode?
That's a question for the HUD-makers, I suppose. Although cim's remark still applies. If you want to go for a date that relates to the RealLife™ Earth calendar, which year exactly would you like to display? For me the ambiguity of the Oolite time code is a strength, not a weakness.
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Converting dates to OOlite timecode.

Post by maaarcooose »

I agree that the ambiguous nature makes it a good thing.

I seem to remember always wondering what the hell stardates in Star Trek meant, but that does have a conversion method.

If general consensus of the creators of oolite is that the timecode is at no particular time, all the better as it just means I can make up whatever time code I like for the fiction, but still try and keep it in the realms of the oolite timecodes displayed in game.

Gives me a bit more flexibility.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
Post Reply