$DAY: Difference between revisions

From m204wiki
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="code">$DAY(day-number)
<p class="syntax">$DAY(<span class="term">day-number</span>)
</p>
</p>
<p>Where:</p>
<p>
<p>Day-number is the number for the day of the week</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>The <var class="product">Model&nbsp;204</var> displays:</p>
<p><var class="product">Model&nbsp;204</var> displays:</p>
<p class="code">'THU'
<p class="code">THU
</p>
</p>
<p>If CUSTOM=3 is selected, $DAY function 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>
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>The <var class="product">Model&nbsp;204</var> displays:</p>
<p><var class="product">Model&nbsp;204</var> displays:</p>
<p class="code">'FRIDAY'
<p class="code">FRIDAY
</p>
</p>
<p>Also, 9 represents the string 'MON-FRI'.</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.