Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hoy = getdate();
- $mes = $hoy["mon"];
- $dia = $hoy["mday"];
- if( $hoy["hours"] > 18 ) {
- $dia++;
- }
- echo "Hoy estamos al ".$dia." de ".$mes."<br> (En EE UU son las ".$hoy["hours"].", por cierto.)<br>";
- if( $mes == "1" ) {
- if( $dia == "1" ) {
- echo "Día de Año Nuevo";
- }
- if( $dia == "6" ) {
- echo "Los Reyes Magos";
- }
- }
- if( $mes == "5" ) {
- if( $dia == "6" ) {
- echo "Día de la madre";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment