phpScheduleIt
May 21, 2013, 05:04:29 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: phpScheduleIt 2.4.2 has been released!
Home
Help
Login
Register
phpScheduleIt
>
Help and Support
>
phpScheduleIt 2.x
>
Getting the total number of seconds
Pages: [
1
]
« previous
next »
Print
Author
Topic: Getting the total number of seconds (Read 149 times)
Alecardo
Jr. Member
Karma: 0
Posts: 51
Getting the total number of seconds
«
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
Re: Getting the total number of seconds
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Open Discussion
=> Donations
-----------------------------
Help and Support
-----------------------------
=> phpScheduleIt 2.x
=> EspaƱol
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
=> New Features and Suggestions
=> Developers
-----------------------------
Bugs
-----------------------------
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
-----------------------------
Modifications
-----------------------------
=> Post Modifications
=> Request Modification
-----------------------------
Development
-----------------------------
=> phpScheduleIt 2.0
-----------------------------
Off-Topic
-----------------------------
=> Non-phpScheduleIt Discussion
Loading...