Converting dates to OOlite timecode.
Moderators: winston, another_commander
- maaarcooose
- ---- E L I T E ----
- Posts: 397
- Joined: Sun May 29, 2011 9:36 pm
- Location: Devon, UK
- Contact:
Converting dates to OOlite timecode.
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!
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
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
- Cody
- 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.
<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!
And any survivors, their debts I will certainly pay. There's always a way!
- maaarcooose
- ---- 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.
I've asked a stupid question haven't I?
!m!
!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
Re: Converting dates to OOlite timecode.
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.maaarcooose wrote:How does the time display relate to standard dates?
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!
- Cody
- 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.
<chuckles>
Stonehenge too, I think.cim wrote:It's very roughly the time the Great Pyramid of Giza was being constructed.
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!
And any survivors, their debts I will certainly pay. There's always a way!
- maaarcooose
- ---- 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.
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!
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
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
- Cody
- 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.
<nods happily>maaarcooose wrote:Frontier is not something that particularly appears on my radar so screw it.
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!
And any survivors, their debts I will certainly pay. There's always a way!
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Converting dates to OOlite timecode.
Indeed. Just as for us today in RLTM, the future is an unknown. Stick to the past and present we know.maaarcooose wrote:...linked to Frontier chronology.
Frontier is not something that particularly appears on my radar so screw it.
Commander Smivs, the friendliest Gourd this side of Riedquat.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Converting dates to OOlite timecode.
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();
}
- Geraldine
- 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.
I always use the 20th September 1984 as the start date as that was the date Elite was first released.
Geraldine
Elite IV Is Released. Now Keeping The Faith in Oolite, Pioneer & FFE3D
Elite IV Is Released. Now Keeping The Faith in Oolite, Pioneer & FFE3D
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Converting dates to OOlite timecode.
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.another_commander wrote:Code: Select all
player.commsMessage(this.$setDateSince(3125, 2, 21)); // any date you want to start countring from
E-mail: [email protected]
- maaarcooose
- ---- 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.
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.Ahruman wrote: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.another_commander wrote:Code: Select all
player.commsMessage(this.$setDateSince(3125, 2, 21)); // any date you want to start countring from
I also really like the idea of that.Geraldine wrote:I always use the 20th September 1984 as the start date as that was the date Elite was first released.
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
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
Re: Converting dates to OOlite timecode.
Hmm, is there an OXP which would display the time in Earth-like days and months instead of this **** timecode?
- Commander McLane
- ---- 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.
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.Zireael wrote:Hmm, is there an OXP which would display the time in Earth-like days and months instead of this **** timecode?
- maaarcooose
- ---- 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.
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!
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
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php