Skip to content

Instantly share code, notes, and snippets.

@Sentinel-7
Created June 1, 2021 17:09
Show Gist options
  • Save Sentinel-7/df3f8cc2b5977b097ce27f49abf5d147 to your computer and use it in GitHub Desktop.
Save Sentinel-7/df3f8cc2b5977b097ce27f49abf5d147 to your computer and use it in GitHub Desktop.
Получаем вчерашнюю дату fenom
{set $time = '' | date_format : "%s" - (24*60*60)}
{$time | date_format : "%b %d, %Y"}
или сниппет
<?php
$yesterday = date('F j, Y', time()-86400);
return $yesterday;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment