phpScheduleIt
May 21, 2013, 05:04:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Getting the total number of seconds  (Read 149 times)
Alecardo
Jr. Member
**

Karma: 0
Posts: 51


« on: April 14, 2012, 03:54:37 PM »

Hello,
I have been working on a new update rule for the program. Unfortunately, my return statement only gives me the time I need in the form of 1 day 2 hours 3 minutes. I would like this in total seconds. Is there any code readily available in the program or by php to convert that string into seconds.
Thank you
Logged
Alecardo
Jr. Member
**

Karma: 0
Posts: 51


« Reply #1 on: April 14, 2012, 04:15:33 PM »

Nevermind, I used the strtotime() function to get timestamp and subtracted from it the current time stamp which I got using time()
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!