public function toTimestamp(string $date, string $time = ''): int
    {
        if (empty($time)) {
            $time = '00:00:01';
        }
        
        // create unix_timestamp
        return strtotime($date . ' ' . $time);
    }