-
-
Save parzibyte/136d36c8c8e08c5439ec8628a5262b71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set("America/Mexico_City"); | |
$tiempoMesPasado = strtotime("last day of previous month"); | |
$anioPasado = date("Y", $tiempoMesPasado); | |
$mesPasado = date("m", $tiempoMesPasado); | |
printf("Año pasado: %s. Mes pasado: %s", $anioPasado, $mesPasado); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment