Editing D'ni time conversion

From Guild of Archivists
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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 17: Line 17:
Many programming languages and software packages, such as Microsoft Excel, use a similar system of representing date/time values as "serial numbers". However, most of those serial-number systems are based on a relatively recent date, such as January 1, 1900 CE, and many cannot handle dates prior to their base. The Julian-day system is able to handle dates over a range of more than 10 million years when using double-precision values, so it is easily able to account for any date in the 10,000-year history of the D'ni civilization.
Many programming languages and software packages, such as Microsoft Excel, use a similar system of representing date/time values as "serial numbers". However, most of those serial-number systems are based on a relatively recent date, such as January 1, 1900 CE, and many cannot handle dates prior to their base. The Julian-day system is able to handle dates over a range of more than 10 million years when using double-precision values, so it is easily able to account for any date in the 10,000-year history of the D'ni civilization.


One final concept of importance is that of the "mean solar tropical year", which is fully described by the Web article [http://www.fact-index.com/t/tr/tropical_year.html Fact Index: Tropical Year]. The Gregorian average year length of 365.2425 days is a slight over-estimate of the time between vernal equinoxes, which is only one possible measure of the time required for the Earth to return to the same position along the path of its orbit (the ecliptic). A different estimate will result from choosing a different point on the ecliptic other than the vernal equinox point from which to measure. Astronomers have defined the mean solar tropical year as the average length of a year over all points on the ecliptic, which is about 365.2422 days. More precise estimates are available, but these vary depending on when the measurement was performed, and the time units (atomic time, universal time, etc.) used to perform the calculation.
One final concept of importance is that of the "mean solar tropical year", which is fully described by the Web article [http://www.fact-index.com/t/tr/tropical_year.html Fact Index: Tropical Year]. The Gregorian average year length of 365.2425 days is a slight over-estimate of the time between vernal equinoxes, which is only one possible measure of the time required for the Earth to return to the same position along the path of its orbit (the ecliptic). A different estimate will result from choosing a different point on the ecliptic — other than the vernal equinox point — from which to measure. Astronomers have defined the mean solar tropical year as the average length of a year over all points on the ecliptic, which is about 365.2422 days. More precise estimates are available, but these vary depending on when the measurement was performed, and the time units (atomic time, universal time, etc.) used to perform the calculation.


== D'ni Timekeeping ==
== D'ni Timekeeping ==


The essentials of the D'ni timekeeping system were first documented by Cyan Worlds on their [http://web.archive.org/web/20070101161036/www.riven.com/dni_time.html D'ni Time] Web page. This information is also available on the [https://web.archive.org/web/20130523171749/http://drcsite.org/dnifaq.php D'ni FAQ] page of the [[DRC]] web site, and in the [[D'ni time]] article. Some familiarity with base-25 arithmetic and the [[D'ni numerals|D'ni numbering system]] may be helpful in understanding the timekeeping system.
The essentials of the D'ni timekeeping system were first documented by Cyan Worlds on their [http://web.archive.org/web/20070101161036/www.riven.com/dni_time.html D’ni Time] Web page. This information is also available on the [https://web.archive.org/web/20130523171749/http://drcsite.org/dnifaq.php D’ni FAQ] page of the [[DRC]] web site, and in the [[D'ni time]] article. Some familiarity with base-25 arithmetic and the [[D'ni numerals|D'ni numbering system]] may be helpful in understanding the timekeeping system.


The D'ni equivalents to our year, month, and day are the ''hahr'', ''vailee'', and ''yahr''. The plural forms of the calendar divisions are ''hahrtee'', ''vaileetee'', and ''yahrtee''.
The D'ni equivalents to our year, month, and day are the ''hahr'', ''vailee'', and ''yahr''. The plural forms of the calendar divisions are ''hahrtee'', ''vaileetee'', and ''yahrtee''.
Line 27: Line 27:
While the D'ni ''hahr'' is approximately the same length as our Gregorian year, they divide it into 10 segments (''vaileetee'') of equal length, unlike our 12 months of differing lengths. In addition, the Cavernian calendar does not require regular corrections equivalent to our leap years, so all ''hahrtee'' are of equal length. This greatly simplifies date calculations in that calendar.
While the D'ni ''hahr'' is approximately the same length as our Gregorian year, they divide it into 10 segments (''vaileetee'') of equal length, unlike our 12 months of differing lengths. In addition, the Cavernian calendar does not require regular corrections equivalent to our leap years, so all ''hahrtee'' are of equal length. This greatly simplifies date calculations in that calendar.


As we further divide our days into hours, minutes, and seconds, so do the D'ni divide their ''yahrtee'' into smaller units. However, they use five divisions: the ''gahrtahvo'', ''pahrtahvo'', ''tahvo'', ''gorahn'', and ''prorahn'' rather than our three divisions. These divisions are based on the natural cycle of the light-producing algae in the D'ni cavern, and on the D'ni base-25 numbering system.
As we further divide our days into hours, minutes, and seconds, so do the D'ni divide their ''yahrtee'' into smaller units. However, they use five divisions: the ''gahrtahvo'', ''pahrtahvo'', ''tahvo'', ''gorahn'', and ''prorahn'' — rather than our three divisions. These divisions are based on the natural cycle of the light-producing algae in the D'ni cavern, and on the D'ni base-25 numbering system.


The D'ni apparently used only the ''pahrtahvotee'' (the D'ni "hour") in casual daily life, numbering them from 1 to 25 on their public clocks, which are known as "''gorahyantee''" in the D'ni language. However, this unit of time was not mentioned in any Cyan or DRC description of the system until March 2007, when a timekeeping brochure was placed in the classrooms of neighborhoods with clocks. The ''pahrtahvo'' was still not mentioned on the DRC web site as of December 2007. Because of this omission, exact times of day are usually given using only the ''gahrtahvo'', ''tahvo'', ''gorahn'', and ''prorahn''. (We do not presently know if this was also the D'ni practice when more precise times were required.) That convention is followed in the remainder of this document, and the ''pahrtahvo'' will not be discussed further.
The D’ni apparently used only the ''pahrtahvotee'' (the D’ni “hour”) in casual daily life, numbering them from 1 to 25 on their public clocks, which are known as “''gorahyantee''” in the D’ni language. However, this unit of time was not mentioned in any Cyan or DRC description of the system until March 2007, when a timekeeping brochure was placed in the classrooms of neighborhoods with clocks. The ''pahrtahvo'' was still not mentioned on the DRC web site as of December 2007. Because of this omission, exact times of day are usually given using only the ''gahrtahvo'', ''tahvo'', ''gorahn'', and ''prorahn''. (We do not presently know if this was also the D’ni practice when more precise times were required.) That convention is followed in the remainder of this document, and the ''pahrtahvo'' will not be discussed further.


The D'ni also recognized a larger unit of time a sort of D'ni century known as the ''hahrtee fahrah''. This is a span of 100 ''hahrtee'' in base 25 (<dni>100</dni>), or 625 years in surface terms. Dates found in various journals often express the ''hahr'' in a shorthand form relative to the current ''hahrtee fahrah'', much as we might use only the last two digits of the year and omit the century when writing a date. The current ''hahrtee fahrah'' began in 9375 [[DE]], which is written as [15|0|0] in base 25. (This would be the first ''hahr'' of the 16th ''hahrtee fahrah'', because the Cavernian dating system begins with ''hahr'' zero.) Add the shorthand year to the starting year of the ''hahrtee fahrah'' to determine the full year. For example, a date of 101.1.5 in a document would represent Leefo 5, 9476 DE when written in its long form, assuming the document was written in the current ''hahrtee fahrah''.
The D'ni also recognized a larger unit of time — a sort of D'ni century — known as the ''hahrtee fahrah''. This is a span of 100 ''hahrtee'' in base 25 (<d'ni>100</dni>), or 625 years in surface terms. Dates found in various journals often express the ''hahr'' in a shorthand form relative to the current ''hahrtee fahrah'', much as we might use only the last two digits of the year and omit the century when writing a date. The current ''hahrtee fahrah'' began in 9375 [[DE]], which is written as [15|0|0] in base 25. (This would be the first ''hahr'' of the 16th ''hahrtee fahrah'', because the Cavernian dating system begins with ''hahr'' zero.) Add the shorthand year to the starting year of the ''hahrtee fahrah'' to determine the full year. For example, a date of 101.1.5 in a document would represent Leefo 5, 9476 DE when written in its long form, assuming the document was written in the current ''hahrtee fahrah''.


== Calendar Conversion Factors ==
== Calendar Conversion Factors ==


The equivalence factors for surface time given in the tables above are, unfortunately, far too imprecise to be useful for converting between the Cavernian and Gregorian calendars. Also, were are missing one other piece of vital information: a starting point. Just as we need to know that 0° Celsius is exactly equal to 32° Fahrenheit before we can convert temperatures between the two scales, we need to know of at least one date in the Gregorian calendar that is exactly equivalent to one particular Cavernian date, before we can convert between the calendars. Until recently, such a "rosetta date" has never been directly provided and the required factors had to be derived from indirect evidence.
The equivalence factors for surface time given in the tables above are, unfortunately, far too imprecise to be useful for converting between the Cavernian and Gregorian calendars. Also, were are missing one other piece of vital information: a starting point. Just as we need to know that 0° Celsius is exactly equal to 32° Fahrenheit before we can convert temperatures between the two scales, we need to know of at least one date in the Gregorian calendar that is exactly equivalent to one particular Cavernian date, before we can convert between the calendars. Until recently, such a “rosetta date” has never been directly provided and the required factors had to be derived from indirect evidence.


In 1997, [[RAWA]], [[Cyan]]'s D'ni Historian, provided a list of surface dates corresponding to the start of the D'ni New Year (Leefo 1) in several years<ref>https://web.archive.org/web/20120310223201/http://www.fortunecity.com/underworld/riven/473/dninewy.html</ref>. This list is is reproduced below.
In 1997, [[RAWA]], [[Cyan]]'’s D'’ni Historian, provided a list of surface dates corresponding to the start of the D'ni New Year (Leefo 1) in several years<ref>https://web.archive.org/web/20120310223201/http://www.fortunecity.com/underworld/riven/473/dninewy.html</ref>. This list is is reproduced below.


{|class=wikitable
{|class=wikitable
! colspan=2 | Official Dates for Leefo 1 (PDT)
! colspan=2 | Official Dates for Leefo 1 (PST)
|-
|-
| 1998 || 4/21 2:35:17 AM
| 1998 || 4/21 2:35:17 AM
Line 55: Line 55:
|}
|}


''The times shown above are in Pacific Daylight Time, which is UTC-0700.''
''The times shown above are in Pacific Standard Time, which is UTC-0800.''


While the above list does not provide us with the equivalent D'ni ''hahr'' for each year, it does give us a figure for the length of the ''hahr'': 31556925 seconds, or 365.2421875 days. This makes the D'ni ''hahr'' about the same length as our astronomical mean solar tropical year, which is why the Cavernian calendar includes no corrections equivalent to our leap years.
While the above list does not provide us with the equivalent D’ni ''hahr'' for each year, it does give us a figure for the length of the ''hahr'': 31556925 seconds, or 365.2421875 days. This makes the D'ni ''hahr'' about the same length as our astronomical mean solar tropical year, which is why the Cavernian calendar includes no corrections equivalent to our leap years.


The time given for 1998 was originally believed by the author to be a transcription error, because it is one second off from the intervals shown in the rest of the list, so it was ignored in the above calculation. However, in light of new information, the deviation appears to be the result of a slight rounding error.
The time given for 1998 was originally believed by the author to be a transcription error, because it is one second off from the intervals shown in the rest of the list, so it was ignored in the above calculation. However, in light of new information, the deviation appears to be the result of a slight rounding error.
Line 69: Line 69:
If desired, precise conversion factors between other surface and D'ni time measures can be derived from the above, but these are all that are needed for the purpose of performing calendar conversions.
If desired, precise conversion factors between other surface and D'ni time measures can be derived from the above, but these are all that are needed for the purpose of performing calendar conversions.


[[File:CyanCam Dni new year cake.jpg|left|frame]]The evidence originally used to determine the correct Cavernian ''hahrtee'' matching the date in the table is more indirect. In April of 1997, Cyan revealed the Riven Journals Web site (now defunct) as a teaser site for the upcoming release of ''Riven: The Sequel to Myst''. The opening of the site was first announced by Jim Stephenson, editor of the Unofficial Riven Homepage (also defunct) on April 22, two days after the beginning of the D'ni New Year in 1997. At about this time a Web cam in Cyan headquarters (Cyan Cam) showed an image of a cake that Cyan prepared to celebrate the event. Written on the cake in D'ni numerals was the base-25 number [15|11|3] (<dni>%!3</dni>), which is 9653 in base 10. Presumably, this was the number of the ''hahr'' that began on that D'ni New Year in 1997 CE.
[[File:CyanCam Dni new year cake.jpg|left|frame]]The evidence originally used to determine the correct Cavernian ''hahrtee'' matching the date in the table is more indirect. In April of 1997, Cyan revealed the Riven Journals Web site (now defunct) as a teaser site for the upcoming release of ''Riven: The Sequel to Myst''. The opening of the site was first announced by Jim Stephenson, editor of the Unofficial Riven Homepage (also defunct) on April 22, two days after the beginning of the D'ni New Year in 1997. At about this time a Web cam in Cyan headquarters (Cyan Cam) showed an image of a cake that Cyan prepared to celebrate the event. Written on the cake in D'ni numerals was the base-25 number [15|11|3] (<d'ni>%!3</dni>), which is 9653 in base 10. Presumably, this was the number of the ''hahr'' that began on that D'ni New Year in 1997 CE.


Based on this reasoning and the assumed one-second error in the 1998 time value, the "rosetta date" for Cavernian/Gregorian calendar conversions was determined to be:
Based on this reasoning and the assumed one-second error in the 1998 time value, the "rosetta date" for Cavernian/Gregorian calendar conversions was determined to be:


: '''00:00:00:00, Leefo 1, 9654 DE = 9:35:18 UTC, April 21, 1998 CE'''
: '''00:00:00:00, Leefo 1, 9654 DE = 10:35:18 UTC, April 21, 1998 CE'''


However the correct date of calendar convergence was disclosed in October 2007 to be the date/time stamp of the HyperCard Stack for the original MYST game: April 21, 1991 at 9:54 AM PS(D)T. Thus:
However the correct date of calendar convergence was disclosed in October 2007 to be the date/time stamp of the HyperCard Stack for the original MYST game: April 21, 1991 at 9:54 AM PST. Thus:


: '''00:00:00:00, Leefo 1, 9647 DE = 16:54:00 UTC, April 21, 1991 CE'''
: '''00:00:00:00, Leefo 1, 9647 DE = 17:54:00 UTC, April 21, 1991 CE'''


''Note that the surface time has been corrected from Pacific Standard (actually Daylight) Time, as supplied by RAWA, to Coordinated Universal Time (UTC, aka GMT). For purity's sake, it might be more appropriate to use Mountain Daylight Time (UTC-0600), which applies to the state of New Mexico under which the D'ni cavern lies. However, the use of UTC makes it easier for individuals to apply their own local time-zone corrections.''
''Note that the surface time has been corrected from Pacific Standard Time, as supplied by RAWA, to Coordinated Universal Time (UTC, aka GMT). For purity's sake, it might be more appropriate to use Mountain Standard Time (UTC-0700), which applies to the state of New Mexico under which the D'ni cavern lies. However, the use of UTC makes it easier for individuals to apply their own local time-zone corrections.''


With conversion factors and convergence date in hand, we can proceed to a description of the specific calculations involved.
With conversion factors and convergence date in hand, we can proceed to a description of the specific calculations involved.
Line 163: Line 163:
=== Cavernian Calendar Algorithms ===
=== Cavernian Calendar Algorithms ===


The next two algorithms needed are the Cavernian-calendar equivalents of the two algorithms above. We must be able to convert Cavernian date/time values to and from what I shall call the Atrian ''yahr'' number (named in honor of Atrus, son of Gehn), which is the number of ''yahrtee'' and fractions that have elapsed since a given base date. We will use Leefo 1, 9647 DE as our base for these algorithms, rather than Leefo 1, 0 DE, since this will simplify later conversions to and from the Gregorian calendar. (''Yahrtee'' are assumed to begin at the "midnight" 00:00:00:00 ''gahrtahvotee''that falls between the previous and current ''yahr''.)
The next two algorithms needed are the Cavernian-calendar equivalents of the two algorithms above. We must be able to convert Cavernian date/time values to and from what I shall call the Atrian ''yahr'' number (named in honor of Atrus, son of Gehn), which is the number of ''yahrtee'' and fractions that have elapsed since a given base date. We will use Leefo 1, 9647 DE as our base for these algorithms, rather than Leefo 1, 0 DE, since this will simplify later conversions to and from the Gregorian calendar. (''Yahrtee'' are assumed to begin at the "midnight" — 00:00:00:00 ''gahrtahvotee''— that falls between the previous and current ''yahr''.)


==== Algorithm 3. Cavernian Date to Atrian Yahr Number ====
==== Algorithm 3. Cavernian Date to Atrian Yahr Number ====
Line 217: Line 217:
<pre>    AYD = AY - 1.0</pre>
<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.
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.745833333) to get the Julian Day number (JD) of the Cavernian date.


<pre>    JDD = AYD * 1.25945582758621
<pre>    JDD = AYD * 1.25945582758621
     JD = JDD + 727249.704166666</pre>
     JD = JDD + 727249.745833333</pre>


D. Convert the calculated Julian Day to a Gregorian date, as per Algorithm 2.
D. Convert the calculated Julian Day to a Gregorian date, as per Algorithm 2.
Line 228: Line 228:
A. Calculate the Julian Day (JD) for the Gregorian date, as per Algorithm 1.
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.
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.745833333). This gives the elapsed time in days and fractions.


<pre>    JDD = JD - 727249.704166666</pre>
<pre>    JDD = JD - 727249.745833333</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.
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.
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)