Jump to content

Current server time


tourer

Recommended Posts

Hey friends. I was looking for a Code which can convert my current server time into minutes: as in if its 12.00 am, it should show 0 minutes, then for 01.00 am it shows 60, till upto 1439 minutes for 11.59 pm.

 

Please anyone can help me. Actually my Mysql DB stores time in minutes format nd somewhere i need to compare the current server time with the time stored in the Database.

 

My Humble try is added below:

 

<?php
date_default_timezone_set('Asia/Kolkata');
$T_time = date("H:i:s");
?>

Link to comment
https://forums.phpfreaks.com/topic/183834-current-server-time/
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.