<?php function unix_timestamp_to_human ($timestamp = "", $format = 'd.m.Y - H:i:s') { if (empty($timestamp) || ! is_numeric($timestamp)) $timestamp = time(); return ($timestamp) ? date($format, $timestamp) : date($format, $timestamp); } $unix_time = "1329938085"; echo unix_timestamp_to_human($unix_time); //Return: 22.02.2012 - 19:14:45 ?>