Scusa, ma che problema c'è nell'usare la funzione mktime() ?
Non è che sia sbagliato eh.