Jump to content

[SOLVED] Time question


monkeybidz

Recommended Posts

I am using this for time and date:

 

$tiempo = date('l dS \of F Y h:i:s A',strtotime('tomorrow'));

 

How would i do this:

 

If current server time is after 12pm or $miles above 100

 

$tiempo = date('l dS \of F Y h:i:s A',strtotime('tomorrow'));

 

else

 

$tiempo = date('l dS \of F Y h:i:s A');

 

 

Can someone translate this to code? It's the "after 12pm part that i am having trouble with.

 

if(date('h') > 12pm || $miles >=100){

   $tiempo = date('l dS \of F Y h:i:s A',strtotime('tomorrow'));

}else{

   $tiempo = date('l dS \of F Y h:i:s A');

}

 

 

Link to comment
https://forums.phpfreaks.com/topic/73753-solved-time-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.