Last active
February 8, 2019 07:34
-
-
Save w1cerg/dac90c5f08c6d88ed87b8b4f609ad1a9 to your computer and use it in GitHub Desktop.
PHP
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 | |
// Плюс 24 часа к сейчас | |
$dateYestarday = (new \DateTime())->add(new \DateInterval('P1D'))->format('Y-m-d H:i:s'); | |
// Завтрашнее число время 00:00:00 | |
$dateYestarday = (\DateTime('tomorrow'))->format('Y-m-d H:i:s'); | |
// Год назад | |
$yearBack = (new \DateTime())->modify('1 year ago'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment