![]() |
datetime difference caluculation for caluculatin SLA in time
HI All,
As subject line says, from the below I could successfully calculate days in to hours, time but I am able to calculate getting in to Minutes using below code. Code:
//to claculate SLAStart date = 05-11-2012 23:15:00 end date= 06-11-2012 01:15:00 output should be 2:00:00 of time. can any one help me ??? Regards, nani |
Why not just use a DateInterval:
PHP Code:
|
Quote:
This was a very simple logic but I was writing all different though of mine which took this all time.....need be more smart & sharp thinker from the next case.... even I have tried above code my self twice but was doing silly mistake make me open this ticket... Thanks for you help... Regards, Nani |
| All times are GMT +1. The time now is 10:05 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.