<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="su" lang="su" dir="ltr">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="keywords" content="Citakan:WEEKDAYNUMBER,CURRENTWEEKDAY,WEEKDAY,WEEKDAYABBREV,WEEKDAYNAME,Template documentation" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Wikipedia (Basa Sunda)" />
<link rel="copyright" href="../../../COPYING.html" />
    <title>Citakan:WEEKDAYNUMBER - Wikipédia</title>
    <style type="text/css">/*<![CDATA[*/ @import "../../../skins/htmldump/main.css"; /*]]>*/</style>
    <link rel="stylesheet" type="text/css" media="print" href="../../../skins/common/commonPrint.css" />
    <!--[if lt IE 5.5000]><style type="text/css">@import "../../../skins/monobook/IE50Fixes.css";</style><![endif]-->
    <!--[if IE 5.5000]><style type="text/css">@import "../../../skins/monobook/IE55Fixes.css";</style><![endif]-->
    <!--[if IE 6]><style type="text/css">@import "../../../skins/monobook/IE60Fixes.css";</style><![endif]-->
    <!--[if IE]><script type="text/javascript" src="../../../skins/common/IEFixes.js"></script>
    <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
    <script type="text/javascript" src="../../../skins/common/wikibits.js"></script>
    <script type="text/javascript" src="../../../skins/htmldump/md5.js"></script>
    <script type="text/javascript" src="../../../skins/htmldump/utf8.js"></script>
    <script type="text/javascript" src="../../../skins/htmldump/lookup.js"></script>
    <script type="text/javascript" src="../../../raw/gen.js"></script>        <style type="text/css">/*<![CDATA[*/
@import "../../../raw/MediaWiki%7ECommon.css";
@import "../../../raw/MediaWiki%7EMonobook.css";
@import "../../../raw/gen.css";
/*]]>*/</style>          </head>
  <body
    class="ns-10">
    <div id="globalWrapper">
      <div id="column-content">
	<div id="content">
	  <a name="top" id="contentTop"></a>
	        <h1 class="firstHeading">Citakan:WEEKDAYNUMBER</h1>
	  <div id="bodyContent">
	    <h3 id="siteSub">Ti Wikipédia, énsiklopédi bébas</h3>
	    <div id="contentSub"></div>
	    	    	    <!-- start content -->
	    <p>Citakan:Template documentation</p>
<p>This template returns the cyclic integer weekday number (between 0 and 6) of the date whose number is in parameter. Alternatively, the day can be given with its English weekday name (complete or abbreviated to 3 characters, with capitals or small letters).</p>
<dl>
<dt>Syntax:</dt>
<dd><tt>{{WEEKDAYNUMBER|</tt><i>day</i><tt>}}</tt></dd>
</dl>
<ul>
<li>The <i>day</i> value can be any numeric expression and is interpreted modulo 7 (extra leading zeroes and decimals are ignored), so it accepts any valid julian day timestamp.</li>
</ul>
<dl>
<dt>Example with a julian day timestamp:</dt>
<dd><tt>{{WEEKDAYNUMBER|{{JULIANDAY|2000|01|01}}}}</tt> returns 5.</dd>
</dl>
<dl>
<dt>Note:</dt>
<dd>The returned value is ordered from 0 to 6 according to the ISO week (Monday to Sunday), and is consistent with date computing with julian day, ISO week or ISO year computations. Use another template to convert it to traditional US week numbers, by adding 5, reducing the result with modulo 7 and, if needed, adding 1 to the result for a range between 1 and 7.</dd>
</dl>
<dl>
<dt>Examples for all standard English week day names:</dt>
<dd><tt>{{WEEKDAYNUMBER|monday}}</tt> returns Expression error: Unrecognised word "monday"</dd>
<dd><tt>{{WEEKDAYNUMBER|tuesday}}</tt> returns Expression error: Unrecognised word "tuesday"</dd>
<dd><tt>{{WEEKDAYNUMBER|wednesday}}</tt> returns Expression error: Unrecognised word "wednesday"</dd>
<dd><tt>{{WEEKDAYNUMBER|thursday}}</tt> returns Expression error: Unrecognised word "thursday"</dd>
<dd><tt>{{WEEKDAYNUMBER|friday}}</tt> returns Expression error: Unrecognised word "friday"</dd>
<dd><tt>{{WEEKDAYNUMBER|saturday}}</tt> returns Expression error: Unrecognised word "saturday"</dd>
<dd><tt>{{WEEKDAYNUMBER|sunday}}</tt> returns Expression error: Unrecognised word "sunday"</dd>
</dl>
<dl>
<dt>Examples for all abbreviated English week day names:</dt>
<dd><tt>{{WEEKDAYNUMBER|mon}}</tt> returns Expression error: Unrecognised word "mon"</dd>
<dd><tt>{{WEEKDAYNUMBER|tue}}</tt> returns Expression error: Unrecognised word "tue"</dd>
<dd><tt>{{WEEKDAYNUMBER|wed}}</tt> returns Expression error: Unrecognised word "wed"</dd>
<dd><tt>{{WEEKDAYNUMBER|thu}}</tt> returns Expression error: Unrecognised word "thu"</dd>
<dd><tt>{{WEEKDAYNUMBER|fri}}</tt> returns Expression error: Unrecognised word "fri"</dd>
<dd><tt>{{WEEKDAYNUMBER|sat}}</tt> returns Expression error: Unrecognised word "sat"</dd>
<dd><tt>{{WEEKDAYNUMBER|sun}}</tt> returns Expression error: Unrecognised word "sun"</dd>
</dl>
<dl>
<dt>Examples for all standard week day numbers:</dt>
<dd><tt>{{WEEKDAYNUMBER|0}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|1}}</tt> returns 1</dd>
<dd><tt>{{WEEKDAYNUMBER|2}}</tt> returns 2</dd>
<dd><tt>{{WEEKDAYNUMBER|3}}</tt> returns 3</dd>
<dd><tt>{{WEEKDAYNUMBER|4}}</tt> returns 4</dd>
<dd><tt>{{WEEKDAYNUMBER|5}}</tt> returns 5</dd>
<dd><tt>{{WEEKDAYNUMBER|6}}</tt> returns 6</dd>
</dl>
<dl>
<dt>Examples for week day numbers with extra leading zero:</dt>
<dd><tt>{{WEEKDAYNUMBER|00}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|01}}</tt> returns 1</dd>
<dd><tt>{{WEEKDAYNUMBER|02}}</tt> returns 2</dd>
<dd><tt>{{WEEKDAYNUMBER|03}}</tt> returns 3</dd>
<dd><tt>{{WEEKDAYNUMBER|04}}</tt> returns 4</dd>
<dd><tt>{{WEEKDAYNUMBER|05}}</tt> returns 5</dd>
<dd><tt>{{WEEKDAYNUMBER|06}}</tt> returns 6</dd>
</dl>
<dl>
<dt>Examples for week day number underflows and overflows, from computed values:</dt>
<dd><tt>{{WEEKDAYNUMBER|-700}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|-701}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|-707}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|-7}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|-6}}</tt> returns 1</dd>
<dd><tt>{{WEEKDAYNUMBER|-5}}</tt> returns 2</dd>
<dd><tt>{{WEEKDAYNUMBER|-4}}</tt> returns 3</dd>
<dd><tt>{{WEEKDAYNUMBER|-3}}</tt> returns 4</dd>
<dd><tt>{{WEEKDAYNUMBER|-2}}</tt> returns 5</dd>
<dd><tt>{{WEEKDAYNUMBER|-1}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|-0.9999}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|-0.5}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|-0.0001}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|0}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|0.0001}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|0.5}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|0.9999}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|6.0001}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|6.5}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|6.9999}}</tt> returns 6</dd>
<dd><tt>{{WEEKDAYNUMBER|7}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|8}}</tt> returns 1</dd>
<dd><tt>{{WEEKDAYNUMBER|14}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|700}}</tt> returns 0</dd>
<dd><tt>{{WEEKDAYNUMBER|701}}</tt> returns 1</dd>
<dd><tt>{{WEEKDAYNUMBER|707}}</tt> returns 0</dd>
</dl>
<dl>
<dt>Example for invalid week day name:</dt>
<dd><tt>{{WEEKDAYNUMBER|xxx}}</tt> returns Expression error: Unrecognised word "xxx"</dd>
</dl>
<dl>
<dt>See also:</dt>
<dd><a href="../../../w/e/e/Citakan%7EWEEKDAYNAME_a5df.html" title="Citakan:WEEKDAYNAME">Template:WEEKDAYNAME</a></dd>
<dd><a href="../../../w/e/e/Citakan%7EWEEKDAYABBREV_b124.html" title="Citakan:WEEKDAYABBREV">Template:WEEKDAYABBREV</a></dd>
<dd><a href="../../../w/e/e/Citakan%7EWEEKDAY_39fd.html" title="Citakan:WEEKDAY">Template:WEEKDAY</a></dd>
<dd><a href="../../../c/u/r/Citakan%7ECURRENTWEEKDAY_c7ab.html" title="Citakan:CURRENTWEEKDAY">Template:CURRENTWEEKDAY</a></dd>
</dl>

<!-- 
Pre-expand include size: 375760 bytes
Post-expand include size: 5729 bytes
Template argument size: 1534 bytes
Maximum: 2048000 bytes
-->
<div class="printfooter">
Disalin ti "<a href="http://su.wikipedia.org../../../w/e/e/Citakan%7EWEEKDAYNUMBER_8af5.html">http://su.wikipedia.org../../../w/e/e/Citakan%7EWEEKDAYNUMBER_8af5.html</a>"</div>
	    <div id="catlinks"><p class='catlinks'><a href="../../../c/a/t/Husus%7ECategories_e61d.html" title="Husus:Categories">Kategori</a>: <span dir='ltr'><a href="../../../c/i/t/Kategori%7ECitakan_Variabel_388d.html" title="Kategori:Citakan Variabel">Citakan Variabel</a></span></p></div>	    <!-- end content -->
	    <div class="visualClear"></div>
	  </div>
	</div>
      </div>
      <div id="column-one">
	<div id="p-cactions" class="portlet">
	  <h5>Views</h5>
	  <ul>
	    <li id="ca-nstab-template"
	       class="selected"	       ><a href="../../../w/e/e/Citakan%7EWEEKDAYNUMBER_8af5.html">Citakan</a></li><li id="ca-talk"
	       class="new"	       ><a href="../../../w/e/e/Obrolan_citakan%7EWEEKDAYNUMBER_fb2d.html">Sawala</a></li><li id="ca-current"
	       	       ><a href="http://su.wikipedia.org/wiki/Citakan:WEEKDAYNUMBER">Révisi kiwari</a></li>	  </ul>
	</div>
	<div class="portlet" id="p-logo">
	  <a style="background-image: url(../../../upload/b/bc/Wiki.png);"
	    href="../../../index.html"
	    title="Tepas"></a>
	</div>
	<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
		<div class='portlet' id='p-navigation'>
	  <h5>Pituduh</h5>
	  <div class='pBody'>
	    <ul>
	    	      <li id="n-mainpage"><a href="../../../index.html">Tepas</a></li>
	     	      <li id="n-portal"><a href="../../../p/a/n/Wikipedia%7EPanglawungan_c328.html">Panglawungan</a></li>
	     	      <li id="n-currentevents"><a href="../../../k/e/u/Wikipedia%7EKeur_lumangsung_7192.html">Keur lumangsung</a></li>
	     	      <li id="n-randompage"><a href="../../../r/a/n/Husus%7ERandom_184a.html">Kaca acak</a></li>
	     	      <li id="n-help"><a href="../../../p/i/t/Wikipedia%7EPitulung_8740.html">Pitulung</a></li>
	     	      <li id="n-sitesupport"><a href="http://wikimediafoundation.org/wiki/Ngumpulkeun_dana">Sumbangan</a></li>
	     	      <li id="n-Kongrés"><a href="../../../p/a/d/Wikipedia%7EPadungdengan_eddb.html">Kongrés</a></li>
	     	    </ul>
	  </div>
	</div>
		<div id="p-search" class="portlet">
	  <h5><label for="searchInput">Sungsi</label></h5>
	  <div id="searchBody" class="pBody">
	    <form action="javascript:goToStatic(3)" id="searchform"><div>
	      <input id="searchInput" name="search" type="text"
	        accesskey="f" value="" />
	      <input type='submit' name="go" class="searchButton" id="searchGoButton"
	        value="Jung" />
	    </div></form>
	  </div>
	</div>
	<div id="p-lang" class="portlet">
	  <h5>Basa séjén</h5>
	  <div class="pBody">
	    <ul>
	      	      <li>
	      <a href="../../../../fr/w/e/e/Mod%C3%A8le%7EWEEKDAYNUMBER_c576.html">Français</a>
	      </li>
	      	    </ul>
	  </div>
	</div>
	      </div><!-- end of the left (by default at least) column -->
      <div class="visualClear"></div>
      <div id="footer">
    <div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="../../../skins/common/images/poweredby_mediawiki_88x31.png" alt="MediaWiki" /></a></div>	<div id="f-copyrightico"><a href="http://wikimediafoundation.org/"><img src="../../../images/wikimedia-button.png" border="0" alt="Wikimedia Foundation"/></a></div>	<ul id="f-list">
	  	  	  <li id="f-credits">Kaca ieu panungtungan dirobah 11:03, 30 Séptémber 2006 ku Pamaké <a href="../../../i/r/w/Pamak%C3%A9%7EIrwangatot_ef4b.html" title="Pamaké:Irwangatot">Irwangatot</a> Wikipédia. Dumasar karya Pamaké <a href="../../../m/s/s/Pamak%C3%A9%7EMssetiadi_1531.html" title="Pamaké:Mssetiadi">Mssetiadi</a> Wikipédia.</li>	  <li id="f-copyright">Sadaya kandungan ieu loka ditangtayungan ku <a class='internal' href="http://www.gnu.org/copyleft/fdl.html">Lisénsi Dokumén Bébas GNU</a> (tingal <b><a class='internal' href="../../../h/a/k/Wikipedia%7EHak_cipta_5ee6.html">Hak cipta</a></b> sangkan leuwih jéntré).<br /></li>	  <li id="f-about"><a href="../../../n/g/e/Wikipedia%7ENgeunaan_0b9b.html" title="Wikipedia:Ngeunaan">Ngeunaan Wikipedia</a></li>	  <li id="f-disclaimer"><a href="../../../b/a/n/Wikipedia%7EBantahan_umum_af22.html" title="Wikipedia:Bantahan umum">Bantahan</a></li>	  	</ul>
      </div>
    </div>
  </body>
</html>
