my $last_update = '2025-06-30 14:40:26'; if ($last_update ge (Time::Piece->localtime - 20*24*60*60)->truncate('to' => 'day')->strftime('%F')) {