BugInTheSYS

Untitled

May 5th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $hoy = getdate();
  3. $mes = $hoy["mon"];
  4. $dia = $hoy["mday"];
  5.  
  6. if( $hoy["hours"] > 18 ) {
  7.     $dia++;
  8. }
  9.  
  10. echo "Hoy estamos al ".$dia." de ".$mes."<br> (En EE UU son las ".$hoy["hours"].", por cierto.)<br>";
  11.  
  12. if( $mes == "1" ) {
  13. if( $dia == "1" ) {
  14.     echo "Día de Año Nuevo";
  15. }
  16. if( $dia == "6" ) {
  17.     echo "Los Reyes Magos";
  18. }
  19. }
  20. if( $mes == "5" ) {
  21. if( $dia == "6" ) {
  22.     echo "Día de la madre";
  23. }
  24. }
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment