(PECL mongo >= 0.8.1)
MongoDate::__construct — ����һ���µ����ڡ�
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:
$sec
= time()
[, int $usec
= 0
]] )����һ���µ����ڡ����û��ָ������������ʹ�õ�ǰ��ʱ�䡣
sec
�Լ�Ԫʱ������������(���� 1 Jan 1970 00:00:00.000 UTC)��
usec
�롣��ע�� MongoDB �Ľ�������������������룬����ζ�����ֵ�ᱻ�سɺ���ķ�����
���ظ��µ�ʱ�䡣
Example #1 MongoDate::__construct() ����
���������ʾ���õ�ǰʱ�䴴��һ���µ������Լ�����ʱ��������ڡ�
<?php
$d = new MongoDate();
echo "$d\n";
$d = new MongoDate(1234567890);
echo "$d\n";
$d = new MongoDate(strtotime("2009-05-01 00:00:01"));
echo "$d\n";
?>
�������̵���������ڣ�
0.23660600 1235685067 0.00000000 1234567890 0.00000000 1241150401