On Thu, Mar 8, 2012 at 7:01 AM, Simon Schick
wrote:
> $date = new DateTime($year . '-' . $current_month . '-1');
> $date->add( new DateInterval( 'P1M' ) ); // Add a period of 1 month to
> the date-instance (haven't tried that with the 30th of Jan ... would
> be kind-of interesting)
>
> $days_in_cu
Hi, All
To bring a work-around into this discussion I myself would not see it
as a good way to do it like that - even if the documentation provides
some information around that.
Here's what I have done in all new projects I worked with time-calculation:
@Tedd: Lets pick up your first example and
> To get the number of days for a specific month, I use:
>
> // $current_month is the month under question
>
> $next_month = $current_month + 1;
I use this
$next_month = $current_month + 1;
$next_month_1= mktime(0, 0, 0, $next_month, 1, date("Y") );
$current_month_1= mktime(0, 0, 0, $curr
On Wed, Mar 7, 2012 at 15:03, Tedd Sperling wrote:
> Hi gang:
>
> I am using the getdate(mktime()) functions to get month data (i.e., name of
> month, first weekday, last day, number of days).
>
> To get the number of days for a specific month, I use:
>
> // $current_month is the month under ques
Tedd,
This area was always a little grey to me.
I have used -1 to obtain the previous months for some time now.
0 always indicated the beginning index of the current month but the
explanation never seemed to fit the bill.
Having worked extensively in time manipulation in many of the deve
Hi gang:
I am using the getdate(mktime()) functions to get month data (i.e., name of
month, first weekday, last day, number of days).
To get the number of days for a specific month, I use:
// $current_month is the month under question
$next_month = $current_month + 1;
$what_date = getda
Hi,
I want to change a SOAP call to curl due to ssl timeout bug of PHP Soap.
My PHP version is PHP 5.2.6-1+lenny13 with Suhosin-Patch 0.9.6.2. I'm
using the following SOAP call and it's handling SSL very good:
$client = new SoapClient('https://92.42.55.82:8442', array('trace' =>
True, 'local_cert'
7 matches
Mail list logo