<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.color64wiki.itchybutt.org/index.php?action=history&amp;feed=atom&amp;title=Absolute_day_numbers</id>
	<title>Absolute day numbers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.color64wiki.itchybutt.org/index.php?action=history&amp;feed=atom&amp;title=Absolute_day_numbers"/>
	<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;action=history"/>
	<updated>2026-05-15T20:49:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.0</generator>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=919&amp;oldid=prev</id>
		<title>Admin at 14:08, 7 March 2026</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=919&amp;oldid=prev"/>
		<updated>2026-03-07T14:08:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:08, 7 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;em&amp;gt;current time&amp;lt;/em&amp;gt; routine located at line &amp;lt;strong&amp;gt;1110&amp;lt;/strong&amp;gt; of each overlay also manages the system date. When midnight occurs, this routine increments the variable &amp;lt;strong&amp;gt;DA&amp;lt;/strong&amp;gt; by one day. The updated value of DA is then used to calculate the other date-related variables.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;em&amp;gt;current time&amp;lt;/em&amp;gt; routine located at line &amp;lt;strong&amp;gt;1110&amp;lt;/strong&amp;gt; of each overlay also manages the system date. When midnight occurs, this routine increments the variable &amp;lt;strong&amp;gt;DA&amp;lt;/strong&amp;gt; by one day. The updated value of DA is then used to calculate the other date-related variables.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;strong&amp;gt;Anytime you want to use one of the information variables listed below, you must perform the GOSUB to 1110.&amp;lt;/strong&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following variables are derived from DA:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following variables are derived from DA:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=918&amp;oldid=prev</id>
		<title>Admin at 14:06, 7 March 2026</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=918&amp;oldid=prev"/>
		<updated>2026-03-07T14:06:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:06, 7 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;em&amp;gt;current time&amp;lt;/em&amp;gt; routine located at line &amp;lt;strong&amp;gt;1110&amp;lt;/strong&amp;gt; of each overlay also manages the system date. When midnight occurs, this routine increments the variable &amp;lt;strong&amp;gt;DA&amp;lt;/strong&amp;gt; by one day. The updated value of DA is then used to calculate the other date-related variables.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;lt;em&amp;gt;current time&amp;lt;/em&amp;gt; routine located at line &amp;lt;strong&amp;gt;1110&amp;lt;/strong&amp;gt; of each overlay also manages the system date. When midnight occurs, this routine increments the variable &amp;lt;strong&amp;gt;DA&amp;lt;/strong&amp;gt; by one day. The updated value of DA is then used to calculate the other date-related variables.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;strong&amp;gt;Anytime you want to use one of the information variables listed below, you must perform the GOSUB to 1110.&amp;lt;/strong&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following variables are derived from DA:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following variables are derived from DA:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=917&amp;oldid=prev</id>
		<title>Admin at 13:52, 7 March 2026</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=917&amp;oldid=prev"/>
		<updated>2026-03-07T13:52:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;amp;diff=917&amp;amp;oldid=344&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=344&amp;oldid=prev</id>
		<title>Admin: Protected &quot;Absolute day numbers&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=344&amp;oldid=prev"/>
		<updated>2025-10-07T20:49:50Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php/Absolute_day_numbers&quot; title=&quot;Absolute day numbers&quot;&gt;Absolute day numbers&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:49, 7 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=343&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Programming Features - &lt;strong&gt;Absolute Day Numbers (ADN)&lt;/strong&gt;  The BBS system keeps track of the current date in the numeric variable DA as a value called an Absolute Day Number (ADN).  An ADN is the number of days that have passed since January 1, 1800 (01/01/1800).  This may seem inconvenient at first, but the Color 64 ML routines take care of all the necessary calculations, and you really don&#039;t even have to know that this is going on.  Yo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.color64wiki.itchybutt.org/index.php?title=Absolute_day_numbers&amp;diff=343&amp;oldid=prev"/>
		<updated>2025-10-07T20:49:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Programming_features&quot; title=&quot;Programming features&quot;&gt;Programming Features&lt;/a&gt; - &amp;lt;strong&amp;gt;Absolute Day Numbers (ADN)&amp;lt;/strong&amp;gt;  The BBS system keeps track of the current date in the numeric variable DA as a value called an Absolute Day Number (ADN).  An ADN is the number of days that have passed since January 1, 1800 (01/01/1800).  This may seem inconvenient at first, but the Color 64 ML routines take care of all the necessary calculations, and you really don&amp;#039;t even have to know that this is going on.  Yo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[programming features|Programming Features]] - &amp;lt;strong&amp;gt;Absolute Day Numbers (ADN)&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The BBS system keeps track of the current date in the numeric variable DA as a value called an Absolute Day Number (ADN).  An ADN is the number of days that have passed since January 1, 1800 (01/01/1800).  This may seem inconvenient at first, but the Color 64 ML routines take care of all the necessary calculations, and you really don&amp;#039;t even have to know that this is going on.  You will never see an ADN when your BBS system is online, but you should know about this if you plan to program on your BBS system.  ML functions @15 to @19 are all used to facilitate ADN calculations and conversions.  For more information on what these functions do, consult section 5.1.8, &amp;quot;ML Function Summary&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
The &amp;quot;current time&amp;quot; routine at line 1110 of an overlay is also used to calculate the current date when midnight has come.  All it does is increase the variable DA by one and then use DA to get the value of DA$ and other information as well.  The variable DA$ will hold the current date in the format &amp;quot;MM/DD/YYYY&amp;quot; where MM is the month (00 to 12), DD is the day (00 to 31), and YYYY is the year (1800 to 9999).  The variable D1 will be the current month (1 to 12).  The variable D2 will be the day of the week in the range 0 to 6 for Sunday to Saturday, respectively.  The variable D3 will be the day of the month (0 to 31).  The variable D4 will be the year (1800 to 9999). &lt;br /&gt;
&lt;br /&gt;
The string array variables D1$ and D2$ can be used to convert a date into plain English format.  The strings D1$(1) to D1$(12) hold the names of the twelve months of the year January to December.  The strings D2$(0) to D2$(6) hold the names of the days of the week from Sunday to Saturday. &lt;br /&gt;
&lt;br /&gt;
Other variables which are stored in ADN format are ED (caller&amp;#039;s membership expiration date), LD (callers&amp;#039;s last call date), and BD (caller&amp;#039;s date of birth).  Also, when the user&amp;#039;s information is read in from their password record, the variables ED$, LD$, and BD$ will be set accordingly. &lt;br /&gt;
&lt;br /&gt;
To find the difference in days between two dates, all you need to do is subtract the lower ADN from the higher ADN.  This will be the exact number of days between the two dates.  Also, to find out what the the current date would be after a certain number of days all you would need to do is add the number of days to the variable DA and you would have the new date. &lt;br /&gt;
&lt;br /&gt;
There is also another function, @27, which can be used to find the number of calendar years between two dates.  Using this function, you can quickly find the age of someone using the caller&amp;#039;s date of birth, by using the format @27(DA,BD). &lt;br /&gt;
&lt;br /&gt;
Next section: [[using disk drives|Using Disk Drives]]&lt;br /&gt;
&lt;br /&gt;
[[programming features|Programming Features]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>