- time: documentation ( source)
- strftime: documentation ( source)
- strtotime: documentation ( source)
<?php
$timestamp = strtotime('now');
$current_time = strftime('%Y%m%d', time());
echo $timestamp . "\n";
echo $current_time . "\n";
echo (strftime('%Y%m%d', $timestamp) - $current_time) === 0;