lostscout5
SOC-12
Any possibility of some one doing an app for converting imperil date to julian calendar dates? I'd do it myself, but I haven't a clue on writing code.
Any possibility of some one doing an app for converting imperil date to julian calendar dates? I'd do it myself, but I haven't a clue on writing code.
If you can read code the Template for dates in the wiki has a number of date conversions: http://wiki.travellerrpg.com/Template:Date
=A2-Date(Year(A2),1,1)
=-1*(4518-YEAR(A2))
Well let's see,according tot he T5 book the Third Imperium started about 4521CE (Terran Calendar) so all you would need to do for years is add 4521 to the Imperial year to get the Terran year.
Dates are a bit more complicated due to leap years in the Julian calendar. It would be easier if you just want to go from Julian to Imperium, but of course that isn't what you asked. I'll see if I can come up with a formula for doing it and then someone can wrap it in nice code.
It is in the source for the template. Which is why I said if you can read code.Actually, there isn't code in that page, but it does lead to the page on Date Conversions where you find a conversion chart, but I am having a hard time figuring it out.
You need to convert the fractional part to a day number and then to a date. So day 10 is 10/365 of a year or 0.027. X becomes year + 0.027. Plug that into the formula. Then multiply the fractional part that comes out by 365 to get days.The formula to go from Imperial to Solomani is (x * 1.0006644) + 4518. So for say, day 10 of year 0 you get 4528.007. How does that translate into a Terran date? Same going the other way, (x-4518)/ 1.0006644. What is x and how does it work?
It is in the source for the template. Which is why I said if you can read code.
You need to convert the fractional part to a day number and then to a date. So day 10 is 10/365 of a year or 0.027. X becomes year + 0.027. Plug that into the formula. Then multiply the fractional part that comes out by 365 to get days.
Just remember that some calendars have a different number of days in a year.
X = 005/365 + 1105 = 1105.0137
(1105.0137 * 1.0006644) + 4518 = 5623.7479
.7479 * 365 = 272.9835
So 005 1105 Imperial is the 273rd day of 5623 Terran
Sorry, I may be getting ahead of things.
But perhaps Excel has Julian day / Gregorian Date functions.
(Update: maybe not)