How to get today unix time ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Supper Baby
Forum Commoner
Posts: 27
Joined: Tue Aug 01, 2006 11:33 pm

How to get today unix time ?

Post by Supper Baby »

Hello again,

When we use time() we get unix time at this moment

what if we need to know the unix time for this day start ?

today is 26 aug. I need unix time for that day ( at second Zero ) the day porn 00.00 I don't want to get unix time for the current hour

:?:
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Code: Select all

echo strtotime('today');
Supper Baby
Forum Commoner
Posts: 27
Joined: Tue Aug 01, 2006 11:33 pm

Post by Supper Baby »

Weirdan wrote:

Code: Select all

echo strtotime('today');


8O I can't belief it 8O

I was using trouble Function to get that.

:D Thank you very very very much
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: How to get today unix time ?

Post by Chris Corbyn »

Supper Baby wrote: the day porn 00.00
8O
Supper Baby
Forum Commoner
Posts: 27
Joined: Tue Aug 01, 2006 11:33 pm

Post by Supper Baby »

:oops: I mean born
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Supper Baby wrote::oops: I mean born
:lol: I won't ask what was on your mind when you typed the post :P
Supper Baby
Forum Commoner
Posts: 27
Joined: Tue Aug 01, 2006 11:33 pm

Post by Supper Baby »

LOL :lol:

8) seems I'm not the only one who thinking too much :wink:
Post Reply