Unix Timestamp Converter

Conversion Utilities · Public · by Chris Petermann · created 2010-01-08 00:00
Category
Conversion Utilities
Description
This utility helps you convert data between human understandable time and unix-time
DATA:"; var_dump($_REQUEST); echo ""; if(isset($_REQUEST['unix'])){ $time['unix'] = $_REQUEST['unix']; $time['hour'] = date("H", $time['unix']); $time['min'] = date("i", $time['unix']); $time['sec'] = date("s", $time['unix']); $time['day'] = date("d", $time['unix']); $time['month'] = date("m", $time['unix']); $time['year'] = date("Y", $time['unix']); }elseif( isset($_REQUEST['hour']) && isset($_REQUEST['minute']) && isset($_REQUEST['second']) && isset($_REQUEST['day']) && isset($_REQUEST['month']) && isset($_REQUEST['year']) ) { $time['unix'] = mktime ( $_REQUEST['hour'], $_REQUEST['minute'], $_REQUEST['second'], $_REQUEST['month'], $_REQUEST['day'], $_REQUEST['year']); $time['hour'] = $_REQUEST['hour']; $time['min'] = $_REQUEST['minute']; $time['sec'] = $_REQUEST['second']; $time['day'] = $_REQUEST['day']; $time['month'] = $_REQUEST['month']; $time['year'] = $_REQUEST['year']; }else{ $time['unix'] = time()+$offset; $time['hour'] = date("H", $time['unix']); $time['min'] = date("i", $time['unix']); $time['sec'] = date("s", $time['unix']); $time['day'] = date("d", $time['unix']); $time['month'] = date("m", $time['unix']); $time['year'] = date("Y", $time['unix']); } ?> This tool lets you convert times to and from Unix Timestamp format.
From Unix timestamp to human readable:
Unix Timestamp
 
From human readable to Unix Timestamp:
Day: Month: Year:   Hour: Minute: Seconds:
 

Comments

Sign in to add a comment.

No comments yet.