Topic: convert standard time to php time() (Read 1157 times)
aka J Love Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 884
1636 credits Members referred : 4
« on: May 08, 2007, 09:36:22 AM »
for example, i say i have a date that is formatted in some data like so:
Quote
05/07/2007 20:15:00
is it possible with PHP, or some script or function that has already been written by a php King like nikolas , to convert that time automatically to what php function.time will return? such as the above being:
Quote
1162165466
Please note for this example, the 2 dates shown in both formats are not identical or of equal value. The 2nd one is just randomly pressed keys that "looks" like what the php function.time returns.
This would of course be the same as just using date("M/D/Y H:M:S") or whatever it may be, but doing it "backwards" in a way, like what i wanted from the substr function before
« Last Edit: May 08, 2007, 09:40:19 AM by Meth0d »
aka J Love Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 884
1636 credits Members referred : 4
« Reply #3 on: May 08, 2007, 07:53:12 PM »
ah, so there IS already a function that does this, after reading the manual from php.net i cant believe i didnt notice this before thanks again Nik!, this is precisely what i was looking for.
ah, so there IS already a function that does this, after reading the manual from php.net i cant believe i didnt notice this before thanks again Nik!, this is precisely what i was looking for.
yes there is a list of related functions in the left side bar...
ah, so there IS already a function that does this, after reading the manual from php.net i cant believe i didnt notice this before thanks again Nik!, this is precisely what i was looking for.
yes there is a list of related functions in the left side bar...
i did not know Webdigity had its own clean version of the php.net manual Olaf, until i posted this thread.. but now i do and use it alot
i did not know Webdigity had its own clean version of the php.net manual Olaf, until i posted this thread.. but now i do and use it alot
my comment was not about the php manual on webdigity, but about how to use the php manual in general. If you read about some function you have always links related functions on the same page.
I read the manual every day and there is every week some new function I never saw before (I know only 20-40 functions with all the arguments)