$DAY: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<p>The $DAY function takes an input day number and returns a 3-byte string containing the name of the day in ascending order beginning with Sunday. The return values are: SUN, MON, TUE, WED, THR, FRI, and SAT. </p> | <p> | ||
The <var>$DAY</var> function takes an input day number and returns a 3-byte string containing the name of the day, in ascending order beginning with Sunday. The return values are: <var>SUN</var>, <var>MON</var>, <var>TUE</var>, <var>WED</var>, <var>THR</var>, <var>FRI</var>, and <var>SAT</var>. </p> | |||
<b>Syntax</b> | <b>Syntax</b> | ||
<p class=" | <p class="syntax">$DAY(<span class="term">day-number</span>) | ||
</p> | </p> | ||
<p>Where:</p> | <p> | ||
<p> | Where:</p> | ||
<p><span class="term">day-number</span> is the number for the day of the week</p> | |||
<b>Usage</b> | <b>Usage</b> | ||
<p>For example, if you enter the following command:</p> | <p>For example, if you enter the following command:</p> | ||
<p class="code">PRINT $DAY(5) | <p class="code">PRINT $DAY(5) | ||
</p> | </p> | ||
<p> | <p><var class="product">Model 204</var> displays:</p> | ||
<p class="code"> | <p class="code">THU | ||
</p> | </p> | ||
<p>If CUSTOM=3 is | <p> | ||
If <code>CUSTOM=3</code> is specified, <var>$DAY</var> takes an input day number from 2 through 8 representing, in ascending order, Monday through Sunday. A string containing the full name of the day is returned. For example, if you enter the following command:</p> | |||
<p class="code">PRINT $DAY(5) | <p class="code">PRINT $DAY(5) | ||
</p> | </p> | ||
<p> | <p><var class="product">Model 204</var> displays:</p> | ||
<p class="code"> | <p class="code">FRIDAY | ||
</p> | </p> | ||
<p> | <p class="note"><b>Note:</b> Value 9 returns the string <code>MON-FRI</code>.</p> | ||
[[Category:SOUL $functions]] | [[Category:SOUL $functions]] |
Latest revision as of 00:16, 31 December 2013
The $DAY function takes an input day number and returns a 3-byte string containing the name of the day, in ascending order beginning with Sunday. The return values are: SUN, MON, TUE, WED, THR, FRI, and SAT.
Syntax
$DAY(day-number)
Where:
day-number is the number for the day of the week
Usage
For example, if you enter the following command:
PRINT $DAY(5)
Model 204 displays:
THU
If CUSTOM=3
is specified, $DAY takes an input day number from 2 through 8 representing, in ascending order, Monday through Sunday. A string containing the full name of the day is returned. For example, if you enter the following command:
PRINT $DAY(5)
Model 204 displays:
FRIDAY
Note: Value 9 returns the string MON-FRI
.