Long year: Difference between revisions
Content deleted Content added
Added Lua version |
m →{{header|BASIC}}: fixed S-BASIC header |
||
Line 804: | Line 804: | ||
<pre>Same as BASIC256 entry.</pre> |
<pre>Same as BASIC256 entry.</pre> |
||
==={{header|S- |
==={{header|S-BASIC}}=== |
||
<syntaxhighlight lang="basic"> |
<syntaxhighlight lang="basic"> |
||
$lines |
$lines |
||
Line 833: | Line 833: | ||
comment |
comment |
||
The simplest of several possible tests is that |
The simplest of several possible tests is that |
||
any |
any ISO year starting or ending on a |
||
Thursday is "long", i.e., |
Thursday is "long", i.e., spans 53 weeks |
||
end |
end |
||
function islongyear(yr = integer) = integer |
function islongyear(yr = integer) = integer |