time_date.php
2016-05-04 19:04
781 查看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> time_date.php </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<?php
$t=time();
var_dump($t);
// 输出类似:Monday
echo date("l",$t) . "<br>";
// 输出类似:Monday 15th of August 2005 03:12:46 PM
echo date('l dS \of F Y h:i:s A',$t). "<br>";
echo date("F j, Y, g:i a",$t). "<br>";
echo date("m.d.y",$t). "<br>";
echo date("j, n, Y",$t). "<br>";
echo date("Ymd",$t). "<br>";
echo date('h-i-s, j-m-y, it is w Day z ',$t). "<br>";
echo date('\i\t \i\s \t\h\e jS \d\a\y.',$t). "<br>";
echo date("D M j G:i:s T Y",$t). "<br>";
echo date('H:m:s \m \i\s\ \m\o\n\t\h',$t). "<br>";
echo date("H:i:s",$t). "<br>";
?>
<hr>
<?php
// 输出类似:Monday
echo date("l") . "<br>";
// 输出类似:Monday 15th of August 2005 03:12:46 PM
echo date('l dS \of F Y h:i:s A'). "<br>";
echo date("F j, Y, g:i a"). "<br>";
echo date("m.d.y"). "<br>";
echo date("j, n, Y"). "<br>";
echo date("Ymd"). "<br>";
echo date('h-i-s, j-m-y, it is w Day z '). "<br>";
echo date('\i\t \i\s \t\h\e jS \d\a\y.'). "<br>";
echo date("D M j G:i:s T Y"). "<br>";
echo date('H:m:s \m \i\s\ \m\o\n\t\h'). "<br>";
echo date("H:i:s"). "<br>";
?>
</body>
</html>
Wednesday
Wednesday 04th of May 2016 11:03:22 AM
May 4, 2016, 11:03 am
05.04.16
4, 5, 2016
20160504
11-03-22, 4-05-16, 0331 0322 3 Wedam16 124
it is the 4th day.
Wed May 4 11:03:22 UTC 2016
11:05:22 m is month
11:03:22
Wednesday
Wednesday 04th of May 2016 11:03:22 AM
May 4, 2016, 11:03 am
05.04.16
4, 5, 2016
20160504
11-03-22, 4-05-16, 0331 0322 3 Wedam16 124
it is the 4th day.
Wed May 4 11:03:22 UTC 2016
11:05:22 m is month
11:03:22
<html>
<head>
<title> time_date.php </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<?php
$t=time();
var_dump($t);
// 输出类似:Monday
echo date("l",$t) . "<br>";
// 输出类似:Monday 15th of August 2005 03:12:46 PM
echo date('l dS \of F Y h:i:s A',$t). "<br>";
echo date("F j, Y, g:i a",$t). "<br>";
echo date("m.d.y",$t). "<br>";
echo date("j, n, Y",$t). "<br>";
echo date("Ymd",$t). "<br>";
echo date('h-i-s, j-m-y, it is w Day z ',$t). "<br>";
echo date('\i\t \i\s \t\h\e jS \d\a\y.',$t). "<br>";
echo date("D M j G:i:s T Y",$t). "<br>";
echo date('H:m:s \m \i\s\ \m\o\n\t\h',$t). "<br>";
echo date("H:i:s",$t). "<br>";
?>
<hr>
<?php
// 输出类似:Monday
echo date("l") . "<br>";
// 输出类似:Monday 15th of August 2005 03:12:46 PM
echo date('l dS \of F Y h:i:s A'). "<br>";
echo date("F j, Y, g:i a"). "<br>";
echo date("m.d.y"). "<br>";
echo date("j, n, Y"). "<br>";
echo date("Ymd"). "<br>";
echo date('h-i-s, j-m-y, it is w Day z '). "<br>";
echo date('\i\t \i\s \t\h\e jS \d\a\y.'). "<br>";
echo date("D M j G:i:s T Y"). "<br>";
echo date('H:m:s \m \i\s\ \m\o\n\t\h'). "<br>";
echo date("H:i:s"). "<br>";
?>
</body>
</html>
1462359802
Wednesday
Wednesday 04th of May 2016 11:03:22 AM
May 4, 2016, 11:03 am
05.04.16
4, 5, 2016
20160504
11-03-22, 4-05-16, 0331 0322 3 Wedam16 124
it is the 4th day.
Wed May 4 11:03:22 UTC 2016
11:05:22 m is month
11:03:22
Wednesday
Wednesday 04th of May 2016 11:03:22 AM
May 4, 2016, 11:03 am
05.04.16
4, 5, 2016
20160504
11-03-22, 4-05-16, 0331 0322 3 Wedam16 124
it is the 4th day.
Wed May 4 11:03:22 UTC 2016
11:05:22 m is month
11:03:22
相关文章推荐
- php curl常用的5个例子
- getdate.php var_dump($arry);
- php 函数变量的作用域 两个关键词global 和static
- php变量函数
- php 函数返回值 return
- PHP 7.0.0 正式发布,速度是 PHP 5.6 的两倍
- php下载地址
- 乌班图下配置PHP运行环境
- PHP读取目录树
- php 实现(非递归,栈模拟)二叉树的先序、中序、后序
- thinkPHP快速创建验证码
- THINKPHP快速创建分页
- 使用vs code写php及调试
- header("Location:login.php")
- jetty9配置contextPath
- PHP Fatal error问题处理
- PHP 实现(递归)二叉树的先序、中序、后序
- Ajax复选框多选删除的实现
- nctf-php
- PHP 实现代码复用的一个方法 traits新特性