Re: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Richard Lynch
On Fri, December 14, 2007 2:02 am, Arno Kuhl wrote: > I'm battling with getting the last week number using date(W, > $unixdate). If > the date is 30 December 2007 ($unixdate=1198965600) then date(W, > $unixdate) > returns 01. I know that according to the ISO spec, the last week of > the ISO > year

RE: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Arno Kuhl
-Original Message- From: Andrew Ballard [mailto:[EMAIL PROTECTED] Sent: 14 December 2007 04:38 To: PHP General list Subject: Re: [PHP] PHP date: ISO year = loss of hair If the last week of the year is the one that has Dec. 28 in it, and the last week number is 52, then Dec. 30 SHOULD

RE: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Arno Kuhl
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 14 December 2007 04:50 To: [EMAIL PROTECTED]; php-general@lists.php.net Cc: Arno Kuhl Subject: Re: [PHP] PHP date: ISO year = loss of hair At 10:02 AM +0200 12/14/07, Arno Kuhl wrote: >I'm battling with getting the l

Re: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Andrew Ballard
On Dec 14, 2007 3:02 AM, Arno Kuhl <[EMAIL PROTECTED]> wrote: > I'm battling with getting the last week number using date(W, $unixdate). If > the date is 30 December 2007 ($unixdate=1198965600) then date(W, $unixdate) > returns 01. I know that according to the ISO spec, the last week of the ISO > y

Re: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread tedd
At 10:02 AM +0200 12/14/07, Arno Kuhl wrote: I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) Not accordingly to my calculations -- try it: http://webbytedd.com/c/unix-time/ Cheers, tedd -- --- http://sperlin

[PHP] PHP date: ISO year = loss of hair

2007-12-13 Thread Arno Kuhl
I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) then date(W, $unixdate) returns 01. I know that according to the ISO spec, the last week of the ISO year has 28 December in it, so in this particular case the last week nu

Re: [PHP] PHP date returns wrong value ??

2005-01-16 Thread Jason Wong
On Sunday 16 January 2005 15:22, Michael Gale wrote: Not a direct answer to your problem ... > $query="INSERT INTO tentry_table SET ticket_id = '" . $ticket . "',"; > $query .= " tentry_date = '" . date("Y-m-d") . "',"; > $query .= " tentry_time = '" . date("H:j:s") . "',"; 1) When doing s

[PHP] PHP date returns wrong value ??

2005-01-16 Thread Michael Gale
Hello, I have a web page that loads php code from another file using include, the second file calls a function from a third file after doing a include on it. I am running php 4.3.7 Below is the snip of code that gets called to update the database. The problem is with the tentry_time value. Th

Re: [PHP] PHP Date()ing logic.....

2003-10-16 Thread Becoming Digital
ng it." wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, 16 October, 2003 15:42 Subject: [PHP] PHP Date()ing logic. Hi, I'm just screwing around with th

[PHP] PHP Date()ing logic.....

2003-10-16 Thread Ryan A
Hi, I'm just screwing around with the date() function and timestamps but have run into a little logic problem... So far (as you can see with the below posted code) I can manipulate days,hours and minutes...any idea on how to do months and years? Lastly the goal of this is to make take all the param

Re: [PHP] php date bug ?

2001-08-03 Thread Tom Carter
ks of the year where new york is 6 hours behing UK, and the rest its only 5. HTH - Original Message - From: "Johnny Nguyen" <[EMAIL PROTECTED]> To: "Steve Brett" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 03, 2001 4:25 PM Subject: RE

Re: [PHP] php date bug ?

2001-08-03 Thread Richard Lynch
> Just to throw one more unwelcome cat amongst the pigeons.. > > Different countries/time zones have summer time, I think almost all > countries do, but the actual days when they switch vary from country (yes I > know, bloody nusiance isn't it?) > > I know as an example of this theres about three

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
tt [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 8:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] php date bug ? as far as i know adding 1 day to the day value of the timestamp will increment the month as well. adding i day to july 31st will give august 1st. if you need it i'll s

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
ement. regards, Johnny Nguyen -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Friday, August 03, 2001 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP] php date bug ? hi, i've got a calendar and i produce a month sort of outlook / filofax view that shows the user's app

Re: [PHP] php date

2001-07-28 Thread Michael Hall
Do you mean something like: $date = date("Y-m-d"); echo $date; Mick On Sat, 28 Jul 2001, colin wrote: > can anyone give me a work around for a PHP date function when used in > conjunction with a PHP include. > The code inside the include is printed but I do not know how to echo

[PHP] php date

2001-07-27 Thread colin
can anyone give me a work around for a PHP date function when used in conjunction with a PHP include. The code inside the include is printed but I do not know how to echo the date as the document has already been parsed once. Any help would be appreciated. Please reply to [EMAIL PROTECTED] many th