Dear all,
As we know we could use time() function, but I have some problem with it :
this is my code :
The Problem is :
How to determine the first time of this day (with linux time)?
Something like this, if I have log all visitors web and save it at mysql (I save the time() output), than how to make a script to filter only the visitor at this day only could be show?
Thank you in advance.
As we know we could use time() function, but I have some problem with it :
this is my code :
Code:
<?
$linux_time=time();
$normal_date=gmdate("d-m-Y",$linux_time);
$normal_time=gmdate("h:i A",$linux_time);
echo "unix time = $linux_time";
echo "<p>normal date = $normal_date";
echo "<p>normal time = $normal_time";
?>
The Problem is :
How to determine the first time of this day (with linux time)?
Something like this, if I have log all visitors web and save it at mysql (I save the time() output), than how to make a script to filter only the visitor at this day only could be show?
Thank you in advance.