HTML5 123
Chuyển đổi thời gian Unix sang thời gian chuẩn By Code on 16th August 2019 02:20:15 PM
  1. <!DOCTYPE html>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  3. <title>Time</title>
  4. </head>
  5. <form action="" method="POST">
  6. Time: <input type="text" size="50" name="time"/>
  7. <input type="submit" value="SUBMIT"/>
  8. <br/><br/>
  9. <?php
  10. $t = $_POST['time'];
  11. if(!$t){
  12.         exit();
  13. } else {
  14. error_reporting(1);
  15. date_default_timezone_set("Asia/Ho_Chi_Minh");
  16. echo(date("Y-m-d H:i:s A P e",$t));
  17. }
  18. ?>
  19. </body>
  20. </html>

PasteBin.Win is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.