Advertisement
Guest User

Unix Epoce -> human time converter

a guest
Aug 7th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. <?php  
  2. // Unix Epoce  -> human time converter          
  3. echo '<form name="form1" method="post" action="unixtime.php">';  
  4. $time=time();  
  5. $time2=date("r",$time);  
  6. echo ' Current Time: '. $time .' - ' .$time2;  
  7. echo '  <p>Unix TimeStamp';  
  8. echo '    <input type="text" name="unix" size=10 maxlength="10" value="'.$unix.'">';  
  9. echo '    <input type="submit" name="Submit" value="Submit">';  
  10. echo '  </p>';  
  11. echo '  </form>';  
  12. If (isset($unix))  
  13. {  
  14.    echo (date("r ",$unix));  
  15. };  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement