[insert_php]
$pst = new DateTimeZone(‘America/Los_Angeles’);
$yesterday = new DateTime(‘-1 days’, $pst);
$theYear = $yesterday->format(‘Y’);
$theMovieFile = “tuolumne_” . $yesterday->format(‘Y_m_d’) . “.mp4”;
$theMovieFilePath = “https://halfdome.net/moviefiles/tuolumne/” . $theYear . “/”. $theMovieFile;
$yesterday_title = $yesterday->format(‘l, F j Y’);
$four_days_ago = new DateTime(‘-4 days’, $pst);
$three_days_ago = new DateTime(‘-3 days’, $pst);
$two_days_ago = new DateTime(‘-2 days’, $pst);
$one_day_ago = new DateTime(‘-1 days’, $pst);
[/insert_php]
[insert_php]echo $yesterday_title;[/insert_php]
Click the links below to view movies from the last few days.
- [insert_php]echo $four_days_ago->format(‘D, M j’);[/insert_php] –
- [insert_php]echo $three_days_ago->format(‘D, M j’);[/insert_php] –
- [insert_php]echo $two_days_ago->format(‘D, M j’);[/insert_php] –
- [insert_php];echo $one_day_ago->format(‘D, M j’);[/insert_php]