blob: 9048ce677058a5af0f99d9d543fd6aa3ce9c9dd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hacker's Corner</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h2>Beyond The Basics?</h2>
<?php
$timestamp = time();
echo strftime("today date is %m/%d/%y", $timestamp) . "<br />\n";
echo "<hr />\n";
$dt = time();
$mysql_datetime = strftime("%Y-%m-%d %H:%M:%S", $dt);
echo "mysql format that it understands: {$mysql_datetime}" . "<br />\n";
?>
</body>
</html>
|