At 10:56 PM +1100 11/18/08, Kevin Waterson wrote:
This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote:
Easter lands on different dates depending upon several different
factors. For example in Canada it's the day after it is in the USA --
I guess Canadians are slower, eh? :-)
Also,
Read Wikipedia article computus
On 18 Nov 2008, at 13:42, Nathan Rixham wrote:
Nathan Rixham wrote:
Kevin Waterson wrote:
This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote:
Easter lands on different dates depending upon several different
factors. For example in Canada it's the da
Nathan Rixham wrote:
Kevin Waterson wrote:
This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote:
Easter lands on different dates depending upon several different
factors. For example in Canada it's the day after it is in the USA --
I guess Canadians are slower, eh? :-)
Also, in some
Kevin Waterson wrote:
This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote:
Easter lands on different dates depending upon several different
factors. For example in Canada it's the day after it is in the USA --
I guess Canadians are slower, eh? :-)
Also, in some religions the date is
This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote:
> Easter lands on different dates depending upon several different
> factors. For example in Canada it's the day after it is in the USA --
> I guess Canadians are slower, eh? :-)
>
> Also, in some religions the date is the full-moon
On Sun, Nov 16, 2008 at 1:18 PM, Yeti <[EMAIL PROTECTED]> wrote:
> > I guess Canadians are slower, eh? :-)
> LOL
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Only cuz it colder here!
--
Bastien
Cat, the other other white mea
> I guess Canadians are slower, eh? :-)
LOL
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 6:51 PM -0500 11/15/08, Ron Piggott wrote:
Is there a way to modify this code so it will always be the *next*
Christmas and Easter?
Also, I forgot to add.
Easter lands on different dates depending upon several different
factors. For example in Canada it's the day after it is in the USA --
At 6:51 PM -0500 11/15/08, Ron Piggott wrote:
Is there a way to modify this code so it will always be the *next*
Christmas and Easter?
";
echo $days_until_Easter . "";
Try this:
http://www.webbytedd.com/b2/easter/
It's just an organizational issue.
Cheers,
tedd
--
---
http://sperlin
Is there a way to modify this code so it will always be the *next*
Christmas and Easter?
";
echo $days_until_Easter . "";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Peter,
You can use this function
function daysLeft($startDate,$endDate=false){
// convert to timestamps
$start_stamp = strtotime($startDate);
$end_stamp = ($endDate)?strtotime($endDate):time();
Best groupmember,
I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there
any date function that can assist in calculating the number of days left
until 2004-12-24 when it is 2004-11-05. (the dates are just testdates)
--
- Best Of Times
/Peter Lauri
--
PHP General Mailing Li
Best groupmember,
I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there
any date function that can assist in calculating the number of days left
until 2004-12-24 when it is 2004-11-05. (the dates are just testdates)
--
- Best Of Times
/Peter Lauri
--
PHP General Mailing Li
negative) echo "NEGATIVE!!\n";
foreach ($daydiffarr as $timeframe=>$count) {
echo "$timeframe = $count\n";
}
?>
> -Original Message-----
> From: Peter Lauri [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 02, 2004 11:38 AM
> To: [EMAIL PROTECTED
Hello Michal,
Friday, March 19, 2004, 5:09:12 PM, you wrote:
>>So despite asking for a way to do it without using dates in functions,
>>that's exactly what you're doing?
>>
>>Heh, gotta love this list sometimes.
MM> No need to be rude - you asked for a way to do it without knowing the
MM> specif
>DC> $sunday = strtotime('1 January 1995'); // That day was a Sunday
>DC> return strftime("%A", $sunday+(3600*24*$day));
>DC> }
>
>So despite asking for a way to do it without using dates in functions,
>that's exactly what you're doing?
>
>Heh, gotta love this list sometimes.
No need
Hello Diana,
Thursday, March 18, 2004, 12:34:32 PM, you wrote:
DC> I didnt want to hard code the names , so we made this up:
DC> function getDayName($day, $lang=''){
DC> if ($locale = Language::getLocale($lang)) {
DC> setlocale(LC_TIME, $locale);
DC> }
DC> $su
I didnt want to hard code the names , so we made this up:
function getDayName($day, $lang=''){
if ($locale = Language::getLocale($lang)) {
setlocale(LC_TIME, $locale);
}
$sunday = strtotime('1 January 1995'); // That day was a Sunday
return strftime("%A", $sun
Hello Diana,
Thursday, March 18, 2004, 12:00:55 PM, you wrote:
DC> yes but I want it in various languages.
Not in your *original* post you didn't (the one that I replied to).
Besides, it wouldn't be that hard to modify to make it happen.
--
Best regards,
Richard Davey
http://www.phpcommunity
yes but I want it in various languages.
"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello Diana,
>
> Thursday, March 18, 2004, 11:38:55 AM, you wrote:
>
> DC> does anyone know of any built in php functions that can convert a day
of
> DC> week that is in numeric fo
Hello Diana,
Thursday, March 18, 2004, 11:38:55 AM, you wrote:
DC> does anyone know of any built in php functions that can convert a day of
DC> week that is in numeric format , e.g. 1 into a Monday (without knowing which
DC> exact date we are talking about)
I can't think of a built-in function t
does anyone know of any built in php functions that can convert a day of
week that is in numeric format , e.g. 1 into a Monday (without knowing which
exact date we are talking about)
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 ext 214
quot;1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Tyler Longren" <[EMAIL PROTECTED]>; "php-general"
<[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 10:09 AM
Subject: Re: [PHP] days between two timestamps
> Since those look like MySQL timestamps,
convert the number of seconds into days.
---John Holmes...
- Original Message -
From: "Tyler Longren" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 11:01 AM
Subject: [PHP] days between two timestamps
> Hi,
>
>
On Wednesday 05 June 2002 23:01, Tyler Longren wrote:
> Hi,
>
> I have two different timestamps:
> 20020603164114
> and
> 20020605054710
>
> Is there a simple way to get the number of days between the two dates?
These look like mysql timestamps. If you're getting them from mysql, you might
try a
[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 11:01 AM
Subject: [PHP] days between two timestamps
> Hi,
>
> I have two different timestamps:
> 20020603164114
> and
> 20020605054710
>
> Is there a simple way to get the number of days between the two dates?
Use substr() to extract the appropriate information, then format it and compare it.
20020603 is obviously June 3, 2002 and
20020605 is obviously June 5, 2002 which means there was 1 day (plus x hours) between
the two.
Hope to help!
Martin
>>> "Tyler Longren" <[EMAIL PROTECTED]> 06/05/02 11:01
Hi,
I have two different timestamps:
20020603164114
and
20020605054710
Is there a simple way to get the number of days between the two dates?
thanks,
tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Could you please be quite a bit more specific? It's difficult to
diagnose the problem without really knowing what it is =>
-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 4:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] days
The e
The employees here and I have noticed that we have a variable that works
when it wants to...
But for days at a time. One day it works fine all day. Another day it fills
up with garbage instead of what its supposed toBut whats particular
about this is that it lasts all day. Good or bad, the be
It really Work !!!
Sorry, thath was my syntax error!
Thanks very much !!
Rosen Marinov
""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Sorry,
> > it doesn't work !!
>
> Why do you say that? I just tested it and it worked.
> It returned:
>
> Sorry,
> it doesn't work !!
Why do you say that? I just tested it and it worked.
It returned:
"115.31296296296"
"115" being the number of days
".31296296296" is the fraction of the day that is the
difference of hours between the two times.
mktime() and date( "U" ) return a unix timestamp
Sorry,
it doesn't work !!
Rosen Marinov
""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> > How can I calculate days between two dates ?
>
> This should work:
>
> $firstDate = mktime( 0, 0, 0, 1, 12, 2001 );
> $secondDate = date( "U" );
> Hi,
> How can I calculate days between two dates ?
This should work:
$firstDate = mktime( 0, 0, 0, 1, 12, 2001 );
$secondDate = date( "U" );
$daysInBetween = ( $secondDate - $firstDate ) / 86400;
Chris
Hi,
How can I calculate days between two dates ?
Thanks,
Rosen Marinov
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
35 matches
Mail list logo