No problema.
If you have access to icq you can use irc.php.net or capek.openprojects.net
(or any other openproject's irc server)
on #php channel.

Andrey

----- Original Message -----
From: "Christopher J. Crane" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 29, 2002 7:08 PM
Subject: Re: [PHP] Dates and Date()


> very nice... thank you!
> ----- Original Message -----
> From: "Andrey Hristov" <[EMAIL PROTECTED]>
> To: "Christopher J. Crane" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, July 29, 2002 12:04 PM
> Subject: Re: [PHP] Dates and Date()
>
>
> > Use while() with some counter that increments when you have bussiness
day/
> > $counter = 0;
> > $bdays = 0;
> > while ($bdays<10){
> >   if
> >
>
(in_array(gmstrftime('%u',gmmktime(0,0,0,7,2-($counter++),2002),array(1,2,3,
> > 4,5)){
> >   $bdays++;
> > echo gmstrftime('%m/%d/%Y',gmmktime(0,0,0,7,2-($counter-1),2002);
> > }
> > }
> >
> > HTH
> >
> > Regards,
> > Andrey
> >
> > ----- Original Message -----
> > From: "Christopher J. Crane" <[EMAIL PROTECTED]>
> > To: "Andrey Hristov" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Monday, July 29, 2002 7:00 PM
> > Subject: Re: [PHP] Dates and Date()
> >
> >
> > > Ok here is what I did.
> > >  $Hist_Time = gmstrftime('%m:%d:%Y', strtotime("-10 days"));
> > >
> > > Now I am wondering if there is a way to look for only the last day
> > business
> > > days and be returned in an array?
> > > ----- Original Message -----
> > > From: "Andrey Hristov" <[EMAIL PROTECTED]>
> > > To: "Christopher J. Crane" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Monday, July 29, 2002 10:59 AM
> > > Subject: Re: [PHP] Dates and Date()
> > >
> > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Christopher J. Crane" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, July 29, 2002 5:51 PM
> > > > Subject: [PHP] Dates and Date()
> > > >
> > > >
> > > > > I believethisto be one way to find out yesterday's date:
> > > > > $tomorrow  = mktime (0,0,0,date("m")  ,date("d")-1,date("Y"));
> > > > >
> > > > > However, I would like to have a snippet of code to tell me how to
> get
> > > the
> > > > > date of today - 10 days ago.
> > > > >
> > > > > if today is jul 29, 2002, how do I get the date funtion to tell me
> 10
> > > days
> > > > > ago. with jul 29, 2002 as the date it would be easy, just subtract
> 10
> > > from
> > > > > 29, but what happens if the date was jul 2, 2002. How do I get the
> > > correct
> > > > > date returned????
> > > >
> > > > All date functions handle correctly this case
> > > >  so echo strftime('%m:%d:%Y', gmmktime(0,0,0,7,2-10,2002));
> > > > will be:
> > > > 06:22:2002
> > > > You can add/substract what you wish and will get correct results in
> case
> > > the
> > > > the resulting timestamp is between 1.1.1970 and somewhere in year
> 2038.
> > > >
> > > >
> > > > Best regards,
> > > > Andrey Hristov
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to