Skip to content

Instantly share code, notes, and snippets.

@ccarpenterg
Created August 5, 2009 02:34
Show Gist options
  • Save ccarpenterg/162447 to your computer and use it in GitHub Desktop.
Save ccarpenterg/162447 to your computer and use it in GitHub Desktop.
<?php
$days = array( 0 => 'Domingo',
1 => 'Lunes',
2 => 'Martes',
3 => 'Miercoles',
4 => 'Jueves',
5 => 'Viernes',
6 => 'Sabado');
$month = array( 'January' => 'Enero',
'February' => 'Febrero',
'March' => 'Marzo',
'April' => 'Abril',
'May' => 'Mayo',
'June' => 'Junio',
'July' => 'Julio',
'August' => 'Agosto',
'September' => 'Septiembre',
'October' => 'Octubre',
'November' => 'Noviembre',
'December' => 'Diciembre');
$time = getdate();
echo $days[$time['wday']] . ' ' . $time['mday'] . ' de ' . $month[$time['month']] . ' de ' . $time['year'];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment