Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread tedd
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,

Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread Aarno Syvänen
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

Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread Nathan Rixham
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

Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread Nathan Rixham
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

Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread Kevin Waterson
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

Re: [PHP] Days until Easter and Christmas

2008-11-17 Thread Bastien Koert
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

Re: [PHP] Days until Easter and Christmas

2008-11-16 Thread Yeti
> I guess Canadians are slower, eh? :-) LOL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Days until Easter and Christmas

2008-11-16 Thread tedd
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 --

Re: [PHP] Days until Easter and Christmas

2008-11-16 Thread tedd
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

[PHP] Days until Easter and Christmas

2008-11-15 Thread Ron Piggott
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

Re: [PHP] Days remaining?

2004-12-03 Thread RaTT
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();

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
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

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
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

RE: [PHP] Days remaining? (years, months, days, hours, minutes, seconds..etc)

2004-12-02 Thread Gryffyn, Trevor
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

Re[5]: [PHP] days of week

2004-03-19 Thread Richard Davey
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

Re[4]: [PHP] days of week

2004-03-19 Thread Michal Migurski
>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

Re[4]: [PHP] days of week

2004-03-18 Thread Richard Davey
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

Re: Re[2]: [PHP] days of week

2004-03-18 Thread Diana Castillo
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

Re[2]: [PHP] days of week

2004-03-18 Thread Richard Davey
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

Re: [PHP] days of week

2004-03-18 Thread Diana Castillo
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

Re: [PHP] days of week

2004-03-18 Thread Richard Davey
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

[PHP] days of week

2004-03-18 Thread Diana Castillo
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

Re: [PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
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,

Re: [PHP] days between two timestamps

2002-06-05 Thread Martin Clifford
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, > >

Re: [PHP] days between two timestamps

2002-06-05 Thread Jason Wong
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

Re: [PHP] days between two timestamps

2002-06-05 Thread 1LT John W. Holmes
[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?

Re: [PHP] days between two timestamps

2002-06-05 Thread Martin Clifford
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

[PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
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

RE: [PHP] days

2001-07-19 Thread Ben Bleything
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

[PHP] days

2001-07-19 Thread Jeremy Morano
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

Re: [PHP] Days between two dates

2001-05-07 Thread Rosen
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: >

RE: [PHP] Days between two dates

2001-05-07 Thread Boget, Chris
> 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

Re: [PHP] Days between two dates

2001-05-07 Thread Rosen
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" );

RE: [PHP] Days between two dates

2001-05-07 Thread Boget, Chris
> 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

[PHP] Days between two dates

2001-05-07 Thread Rosen
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]