����Linux�Ż�
Linux����

strtotime���ı�����ʱ�����ΪUnixʱ���

����ʱ��:2006-09-16 15:48:57��Դ:��������:����
[code]echo strtotime("2006-01-09");
echo strtotime("2006-01-09 08:10");
echo strtotime("now");
echo strtotime("10 September 2000");
echo strtotime("+1 day");
echo strtotime("+1 week");
echo strtotime("+1 week 2 days 4 hours 2 seconds");
echo strtotime("next Thursday");
echo strtotime("last Monday");
?>[/code].�������ں�[code]$days=date('d',strtotime('now')); //2006-09-06[/code].��ǰ���³�[code]echo $currMBegin=date("Y-m", strtotime('now'))."-01  ";[/code].������ĩ[code]echo $currMEnd =date("Y-m-d", strtotime("next month -$days day"));[/code].�����³�[code]echo $nextMBegin=date("Y-m", strtotime('next month'))."-01";[/code].�����µ�[code]echo $nextMEnd =date("Y-m-d", strtotime("+2 months -$days day"));[/code]2006-09-01 2006-09-30
2006-10-01 2006-10-31
��������

���� 1 ������

  1. �� 2006-10-23 17:11:17����:

    :0Q