Weeks in a year is 52 or 53
Days in a year is 365 and if a leap year 366
If (
(365 (Days Of a year) * (Years From 1940)) + (Number of leap years
since 1940, (Years From 1940 / 4) (if its a Leap year -1)) + ((Days
>From 01-01) + 1) % 7 = (0-6 where 0 = Monday)
) is less then 3 (Thursday) then it
On Wed, Mar 18, 2009 at 12:57:39PM -0400, Bob McConnell wrote:
> From: Paul M Foster
> > On Wed, Mar 18, 2009 at 11:46:31AM -0400, Bob McConnell wrote:
> >>
> >>> You also need to be aware that on 32 bit Unix and Linux systems the
> >> behavior of mktime() on dates after Jan 18, 2038 is undefined
From: Paul M Foster
> On Wed, Mar 18, 2009 at 11:46:31AM -0400, Bob McConnell wrote:
>>
>>> You also need to be aware that on 32 bit Unix and Linux systems the
>> behavior of mktime() on dates after Jan 18, 2038 is undefined. The 32
>> bit counter overflows early on the 19th, so any value returned
On Wed, Mar 18, 2009 at 11:46:31AM -0400, Bob McConnell wrote:
> From: Paul M Foster
>
> You also need to be aware that on 32 bit Unix and Linux systems the
> behavior of mktime() on dates after Jan 18, 2038 is undefined. The 32
> bit counter overflows early on the 19th, so any value returned
On Wed, 2009-03-18 at 11:46 -0400, Bob McConnell wrote:
> From: Paul M Foster
> > On Tue, Mar 17, 2009 at 08:52:11PM -0700, Jason Todd Slack-Moehrle
> wrote:
> >
> >> Hi All,
> >>
> >> Does anyone have code and/or advice for how to get get the current
> >> week (with a passed current day, say) and
From: Paul M Foster
> On Tue, Mar 17, 2009 at 08:52:11PM -0700, Jason Todd Slack-Moehrle
wrote:
>
>> Hi All,
>>
>> Does anyone have code and/or advice for how to get get the current
>> week (with a passed current day, say) and what then end date is at
>> Saturday.
>>
>> So take today: Tuesday Marc
On Tue, 2009-03-17 at 20:52 -0700, Jason Todd Slack-Moehrle wrote:
> Hi All,
>
> Does anyone have code and/or advice for how to get get the current
> week (with a passed current day, say) and what then end date is at
> Saturday.
>
> So take today: Tuesday March 17, 2009
>
> I want to get:
>
On Tue, Mar 17, 2009 at 08:52:11PM -0700, Jason Todd Slack-Moehrle wrote:
> Hi All,
>
> Does anyone have code and/or advice for how to get get the current
> week (with a passed current day, say) and what then end date is at
> Saturday.
>
> So take today: Tuesday March 17, 2009
>
> I want to get:
>
Robert Cummings wrote:
function getStamp($dateStr,$dayVal=1){
return date('U',mktime(0,0,0, $dateStr,$dayVal,date('Y')));
}
^
^
On Wed, 2008-05-28 at 14:27 -0400, Mark Weaver wrote:
> Hi all,
>
> I've put this off as long as possible, however I think I've reached an
> impasse.
>
> I've got an application that I've been writing. One of the modules for
> this app is an event calendar. I've got the calendar to the place w
10 matches
Mail list logo