Long year: Difference between revisions

Content deleted Content added
FreeTom (talk | contribs)
Added Lua version
Ssmitch45 (talk | contribs)
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-Basic}}===
==={{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 calendar year starting or ending on a
any ISO year starting or ending on a
Thursday is "long", i.e., has 53 ISO weeks
Thursday is "long", i.e., spans 53 weeks
end
end
function islongyear(yr = integer) = integer
function islongyear(yr = integer) = integer