Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Guild of Archivists
Search
Editing
D'ni time conversion
(section)
From Guild of Archivists
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Cavernian/Gregorian Conversion Algorithms === With Julian Day and Atrian Yahr numbers firmly in hand, the conversion between the Cavernian and Gregorian calendars becomes extremely simple, as shown in the final two algorithms. ==== Algorithm 5. Cavernian Date to Gregorian Date ==== A. Calculate the Atrian ''Yahr'' (AY) for the Cavernian date, as per Algorithm 3. B. Using real arithmetic, determine the difference (AYD) between the AY of the selected date and the AY of the base Cavernian date for the conversion (which is 1.0). This gives the elapsed time in ''yahrtee'' and fractions. <pre> AYD = AY - 1.0</pre> C. Using real arithmetic, convert AYD from ''yahrtee'' to days to get the Julian Day difference (JDD). Add JDD to the Julian Day number of the base Gregorian date (which is 727249.704166666) to get the Julian Day number (JD) of the Cavernian date. <pre> JDD = AYD * 1.25945582758621 JD = JDD + 727249.704166666</pre> D. Convert the calculated Julian Day to a Gregorian date, as per Algorithm 2. ==== Algorithm 6. Gregorian Date to Cavernian Date ==== A. Calculate the Julian Day (JD) for the Gregorian date, as per Algorithm 1. B. Using real arithmetic, determine the difference (JDD) between the JD of the selected date and the JD of the base Gregorian date for the conversion (which is 727249.704166666). This gives the elapsed time in days and fractions. <pre> JDD = JD - 727249.704166666</pre> C. Using real arithmetic, convert JDD from days to ''yahrtee'' to get the Atrian ''Yahr'' difference (AYD). Add AYD to the Atrian ''Yahr'' number of the base Cavernian date (which is 1.0) to get the Atrian ''Yahr'' number (AY) of the Gregorian date. <pre> AYD = JDD * 0.793993705929756 AY = AYD + 1.0</pre> D. Convert the calculated Atrian ''Yahr'' to a Cavernian date, as per Algorithm 4.
Summary:
Please note that all contributions to Guild of Archivists may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
GoArch:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main Page
Random page
Categories
All pages
Recent changes
Resources
D'ni dictionary
Reference material
Utilities
Community
Forums
Jalak Game Directory
Projects
Apocrypha
Unexplored Branches
All projects
Contribute
Stubs
Wanted
Cleanup
Dead ends
Image requested
Help
Help
Guide
Policies
Wiki tools
Wiki tools
Special pages
Page values
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs