to working with time and dates i use date() ant time() functions if you want to creant some "time" from variable use mktime function...