13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="weekday">
15
<refname>weekday</refname>
16
<refpurpose>Return day of week</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>[N,S] = weekday(D)
21
[N,S] = weekday(D, form)
25
<title>Description</title>
26
<para>[N,S] = weekday(D) returns the day of the week in numeric(N) and string(S) form for a given serial date number or date string D. Input argument D can represent more than one date in an array of serial date number.</para>
27
<para>[N,S] = weekday(D, form) returns the week in numeric(N) and string(S) form, where the content of S depends on the form argument. If form is 'long', then S countains the full name of the weekday (e.g, Thuesday). If form is 'short', then S contains an abbreviated name (e.g., Tue) from this table.</para>
30
<title>Examples</title>
31
<programlisting role="example"><![CDATA[
15
<refname>weekday</refname>
16
<refpurpose>Return day of week</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>[N,S] = weekday(D)
21
[N,S] = weekday(D, form)
25
<title>Description</title>
26
<para>[N,S] = weekday(D) returns the day of the week in numeric(N) and string(S) form for a given serial date number or date string D. Input argument D can represent more than one date in an array of serial date number.</para>
27
<para>[N,S] = weekday(D, form) returns the week in numeric(N) and string(S) form, where the content of S depends on the form argument. If form is 'long', then S countains the full name of the weekday (e.g, Thuesday). If form is 'short', then S contains an abbreviated name (e.g., Tue) from this table.</para>
30
<title>Examples</title>
31
<programlisting role="example"><![CDATA[
33
33
[N,S] = weekday(today)
34
34
[N,S] = weekday(today,'short')
35
35
[N,S] = weekday(today,'long')
36
36
]]></programlisting>
38
<refsection role="see also">
39
<title>See Also</title>
40
<simplelist type="inline">
42
<link linkend="datenum">datenum</link>
45
<link linkend="datevec">datevec</link>
48
<link linkend="weekday">weekday</link>
38
<refsection role="see also">
39
<title>See Also</title>
40
<simplelist type="inline">
42
<link linkend="datenum">datenum</link>
45
<link linkend="datevec">datevec</link>
48
<link linkend="weekday">weekday</link>