Location: PHPKode > projects > MUSPA > muspa/modules/noticia/templates/especificadores.htm
<!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">
<head>
<title>Códigos</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../../../style.css" rel="stylesheet" type="text/css" />

</head>
<body class="content" style="margin: 0px;">
<div style="background-color: white;">
<div class="b1_title" style="padding: 10px;">Códigos para {DATAHORA|xxx}</div>
</div>
<div class="horizontalline"><img src="../../../img/px.gif" width="1" height="1" alt="" border="0"></div>

<div style="padding: 10px;">
<p>Lista dos códigos mais usados que podem ser usados para formatação de data.</p>
<p>Para uma lista completa veja a documentação do MySQL.</p>

<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<th width="14" align="left" valign="top" class="b2_left" scope="col"><img src="../../../img/b2_ctl.gif" width="14" height="14" alt="" /></th>
		<th class="b2_header" scope="col">Código</th>
		<th class="b2_header" scope="col">Descrição</th>
		<th width="14" align="right" valign="top" class="b2_right" scope="col"><img src="../../../img/b2_ctr.gif" width="14" height="14" alt="" /></th>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%M</td>
		<td class="b2_content">Nome do mês (January..December)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%W</td>
		<td class="b2_content">Dia da semana (Sunday..Saturday) </td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%Y</td>
		<td class="b2_content">Ano, 4 digitos</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%y</td>
		<td class="b2_content">Ano, 2 digitos</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%d</td>
		<td class="b2_content">Dia do mês (00..31)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%e</td>
		<td class="b2_content">Dia do mês (0..31)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%m</td>
		<td class="b2_content">Mês numerico (00..12)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%c</td>
		<td class="b2_content">Mês numerico (0..12)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%H</td>
		<td class="b2_content">Hora (00..23)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%k</td>
		<td class="b2_content">Hora (0..23)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%h</td>
		<td class="b2_content">Hora (00..12)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%I</td>
		<td class="b2_content">Hora (0..12)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%i</td>
		<td class="b2_content">Minutos (00..59)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%r</td>
		<td class="b2_content">Hora 12 horas "hh:mm:ss" seguido de AM/PM</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%T</td>
		<td class="b2_content">Hora 24 horas "hh:mm:ss"</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%s</td>
		<td class="b2_content">Segundos (00..59)</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%p</td>
		<td class="b2_content">AM/PM</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr>
		<td width="14" class="b2_left">&nbsp;</td>
		<td class="b2_content">%%</td>
		<td class="b2_content">Caractere '%'</td>
		<td width="14" class="b2_right">&nbsp;</td>
	</tr>
	<tr class="b2_bottom">
		<td width="14" align="left" valign="bottom" class="b2_left"><img src="../../../img/b2_cbl.gif" width="14" height="14" class="b2_left" alt="" /></td>
		<td class="b2_bottom" colspan="2"></td>
		<td width="14" align="right" valign="bottom" class="b2_right"><img src="../../../img/b2_cbr.gif" width="14" height="14" alt="" /></td>
	</tr>
</table>


</body>
</html>
Return current item: MUSPA