RE: [PHP] Date ranges

2005-01-24 Thread Jay Blanchard
[snip] I have a page that is for booking attendance to events, and instead of using a date picker, I want to display drop-down selects which cover the ranges of dates that the event is occurring at. My question is, is there an easy way to determine the dates in between the date from and to that is

RE: [PHP] Date ranges

2005-01-24 Thread Mikey
*PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB functions.

RE: [PHP] Date ranges

2005-01-24 Thread Bret Hughes
On Mon, 2005-01-24 at 14:07, Mikey wrote: *PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD

RE: [PHP] Date ranges

2005-01-24 Thread Jay Blanchard
[snip] *PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB functions.

Re: [PHP] Date ranges

2005-01-24 Thread Richard Lynch
Mikey wrote: I have a page that is for booking attendance to events, and instead of using a date picker, I want to display drop-down selects which cover the ranges of dates that the event is occurring at. My question is, is there an easy way to determine the dates in between the date from

Re: [PHP] Date ranges

2005-01-24 Thread Jason Wong
On Tuesday 25 January 2005 04:07, Mikey wrote: *PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the

RE: [PHP] Date ranges

2005-01-24 Thread Mikey
I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB functions. http://www.mysql.com/date Then

[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.

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 something involving

[PHP] Date()

2005-01-15 Thread John Taylor-Johnston
I might be doing this backwards, but how do I extract the date from $week5 and display $week5 + 4 days. I would like to create a function so when I pass echo displaydate($week5); it echos February 14-18 $week0 = 2005-01-10; $week1 = 2005-01-17; $week2 = 2005-01-24; $week3 = 2005-01-31; $week4

[PHP] Date-development stalled?

2005-01-02 Thread tmp
It seems that development of Pear::Date has stalled. The package does has some major bugs when used with php5 - both in the main Date class and in Date_Span. There has been filled a bug report as early as september 2004, but no fix has been made yet and no response from a developer, other than

[PHP] Date problem?

2004-12-22 Thread PHP
echo date('F',strtotime("next month")); This is printing February right now. Does this sound right or is this a but in strtotime()? is "next month" a valid parameter? and yes, I am sure our server is set to December(todays date). echo date('F',strtotime("last month")); Does give me

Re: [PHP] Date problem?

2004-12-22 Thread Christopher Fulton
Try this instead... echo date('F',strtotime(+1 month)); read through the user comments at... http://us2.php.net/manual/en/function.strtotime.php there are some things pertaining to your situtation -Chris On Wed, 22 Dec 2004 15:38:38 -0800, PHP [EMAIL PROTECTED] wrote: echo

Re: [PHP] Date problem?

2004-12-22 Thread PHP
Hi, I did use the +1 month, but I was just curious as to what was up. Try this instead... echo date('F',strtotime(+1 month)); read through the user comments at... http://us2.php.net/manual/en/function.strtotime.php there are some things pertaining to your situtation -Chris On Wed, 22 Dec 2004

Re: [PHP] Date problem?

2004-12-22 Thread PHP
Ok, I was using the download version of the manual and it didn't have any user comments on this, but the online one does. Hi, I did use the +1 month, but I was just curious as to what was up. Try this instead... echo date('F',strtotime(+1 month)); read through the user comments at...

Re: [PHP] Date problem?

2004-12-22 Thread Sebastian
try +one month - Original Message - From: PHP To: php Sent: Wednesday, December 22, 2004 6:38 PM Subject: [PHP] Date problem? echo date('F',strtotime(next month)); This is printing February right now. Does this sound right or is this a but in strtotime()? is next month

RE: [PHP] Date Manipulation

2004-12-02 Thread Gryffyn, Trevor
?) Hope this helps clarify mktime(), strtotime() and date(). -TG -Original Message- From: Christopher Weaver [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 7:13 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Date Manipulation This code: echo strtotime(now); echo

RE: [PHP] Date Manipulation

2004-12-01 Thread Gryffyn, Trevor
you want. I know mktime and strtotime were already mentioned, but I think examples help too so pardon me for expanding on it. -TG -Original Message- From: Christopher Weaver [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 9:19 PM To: [EMAIL PROTECTED] Subject: [PHP

Re: [PHP] Date Manipulation

2004-12-01 Thread Christopher Weaver
This code: echo strtotime(now); echo mktime(Ymd, strtotime(now)); is producing this result: 1101945775 Warning: mktime(): Windows does not support negative values for this function ... -1 What am I doing wrong? Thanks again. John Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Date Manipulation

2004-12-01 Thread Matthew Weier O'Phinney
* Christopher Weaver [EMAIL PROTECTED]: This code: echo strtotime(now); echo mktime(Ymd, strtotime(now)); is producing this result: 1101945775 Warning: mktime(): Windows does not support negative values for this function ... -1 What am I doing wrong? Using the wrong function, or

Re: [PHP] Date Manipulation

2004-12-01 Thread Christopher Weaver
Sorry about that. Works great with date. Thanks. Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Christopher Weaver [EMAIL PROTECTED]: This code: echo strtotime(now); echo mktime(Ymd, strtotime(now)); is producing this result: 1101945775 Warning:

Re: [PHP] Date Manipulation

2004-11-30 Thread John Holmes
Christopher Weaver wrote: I've looked at the date functions in the manual but can't find what I need. All I want to do is add and subtract days without ending up with bogus date values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36. Just a nod in the write direction would be great. mktime() or

[PHP] Date Manipulation

2004-11-30 Thread Christopher Weaver
I've looked at the date functions in the manual but can't find what I need. All I want to do is add and subtract days without ending up with bogus date values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36. Just a nod in the write direction would be great. Thanks. -- PHP General Mailing List

[PHP] Date Format error

2004-11-25 Thread Stuart Felenstein
I'm getting a: Parse error: parse error, unexpected '%' in /home/mysite/public_html/userpage.php on line 120 th scope=row?php echo $rsVJ-Fields('DATE_FORMAT(LstUpdate,'%m/%d/%Y')'); ?/th th scope=row?php echo $rsVJ-Fields('DATE_FORMAT(InitOn,'%m/%d/%Y')'); ?/th th

RE: [PHP] Date Format error

2004-11-25 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 25 November 2004 18:39, Stuart Felenstein wrote: I'm getting a: Parse error: parse error, unexpected '%' in /home/mysite/public_html/userpage.php on line 120 th

Re: [PHP] Date handling

2004-11-16 Thread Robert Sossomon
SNIP ?php echo strtotime('1950-01-01'); ? I'm guessing Red Hat Enterprise or at least the kernel I'm using (which is the latest RH kernel) qualifies under the Linux category above. Also, with the application I'm writing, I need to deal with dates after 2038 too. So that is why I'm investigating

Re: [PHP] Date handling

2004-11-16 Thread Ryan
Hi Robert, Storing the date in my database isn't the issue I'm running into. The problem I'm having is that if I have a date 1950-01-01, how can I display it in my PHP script as Jan 1, 1950. Or if I have 2040-04-01, how to get it to display as Apr 1, 2040. I can't see a way to do that right

RE: [PHP] Date handling

2004-11-16 Thread Mike
clever using strtotime() however. http://us2.php.net/manual/en/function.strtotime.php -M -Original Message- From: Ryan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:23 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Date handling Hi Robert, Storing the date in my database isn't

Re: [PHP] Date handling

2004-11-16 Thread Ryan
Yes, but time() returns a Unix timestamp which has a limit of 2038. For example, what if I would like to calculate the date of 40 years from today? I can't do that with the normal PHP date functions. I would have to use PEAR Date or something similar, which is my original question - of what

Re: [PHP] Date Conversions?

2004-11-16 Thread Justin French
On 16/11/2004, at 6:29 AM, Robert Sossomon wrote: I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to display it in either format: MM-DD-YY or Month Day, Year format. Do it in PHP, not in the query, IMHO. ? $date = 04-11-28; list($year,$month,$day) = explode('-',$date);

[PHP] Date handling

2004-11-15 Thread Ryan
of using date() or strftime() and possibly getting invalid data. Additionally, are there any plans to make an official PHP date extension that handles dates outside a Unix timestamp range as something built into the language itself rather than as a '3rd party extension' which the PEAR Date module

RE: [PHP] Date Conversions?

2004-11-15 Thread Mike Johnson
From: Robert Sossomon [mailto:[EMAIL PROTECTED] I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to display it in either format: MM-DD-YY or Month Day, Year format. I can't figure out how to write the query to do it, and am not sure how to make PHP just parse

Re: [PHP] Date Conversions?

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 14:29:59 -0500, Robert Sossomon [EMAIL PROTECTED] wrote: I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to display it in either format: MM-DD-YY or Month Day, Year format. I can't figure out how to write the query to do it, and am not sure how

[PHP] Date Conversions?

2004-11-15 Thread Robert Sossomon
I have a date in format YY-MM-DD in a MySQL table. I need to pull it back to display it in either format: MM-DD-YY or Month Day, Year format. I can't figure out how to write the query to do it, and am not sure how to make PHP just parse the one given and dump it back out in the way I need it.

Re: [PHP] Date handling

2004-11-15 Thread Ryan King
, are there any plans to make an official PHP date extension that handles dates outside a Unix timestamp range as something built into the language itself rather than as a '3rd party extension' which the PEAR Date module appears to be since it's not in the core PHP language? I believe I've heard rumors

Re: [PHP] Date handling

2004-11-15 Thread Justin French
On 16/11/2004, at 7:05 AM, Ryan wrote: I would like to find out the 'official' way to handle dates in PHP. I am aware of the limits on a Unix timestamp, but I am writing a financial application that needs to deal with dates both before 1970 and after 2038 and of course have run into problems

Re: [PHP] Date handling

2004-11-15 Thread Ryan
Hi Justin, Thanks for your reply. Actually the main issue that I'm running into is that I cannot get Unix timestamps before 1970. I'm running on Red Hat Enterprise Linux (kernel 2.4.21-20.EL). If I run: ?php echo strtotime('1950-01-01'); ? the script outputs -1, which then of course

[PHP] DATE()

2004-11-08 Thread Aaron Todd
Is there any way yo get the date and time using date() from a Internet time server? Right now I am getting it from my servers date and time which seems to be unpredictable since my ISP seems to change it at random. Windows shows two time servers time.windows.com and time.nist.gov and I was

Re: [PHP] DATE()

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 13:06:41 -0500, Aaron Todd [EMAIL PROTECTED] wrote: Is there any way yo get the date and time using date() from a Internet time server? php -r system('ntpdate -q ntp.nasa.gov'); -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP

Re: [PHP] Date Calculation

2004-10-29 Thread Robert Sossomon
Wouldn't just making the script get 2 time stamps be more efficient, since you are creating the database calls anyways? Or am I over simplifying it? ?php // current time at start of script $before = strtotime(now); //All your DB stuff { } // current time at end of script $after =

Re: [PHP] Date Calculation

2004-10-28 Thread Mike Tuller
That's not quite what I am talking about. I looked at that already. I can could also put the date and time that the script was ran into the MySql database by have a TIMESTAMP field in the database. I would like to compare the date and time of timestamp in the database to the current time and

RE: [PHP] Date Calculation

2004-10-28 Thread Jay Blanchard
[snip] That's not quite what I am talking about. I looked at that already. I can could also put the date and time that the script was ran into the MySql database by have a TIMESTAMP field in the database. [/snip] You can use that to convert your time in the DB, get the current time when seeking

[PHP] Date Calculation

2004-10-28 Thread Mike Tuller
I have a shell script that inserts the unix date and time that the script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT 2004. I would like to have my web page do the math so that it displays the time since the script ran. How can I do the math so that the web page will display

RE: [PHP] Date Calculation

2004-10-28 Thread Jay Blanchard
[snip] I have a shell script that inserts the unix date and time that the script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT 2004. I would like to have my web page do the math so that it displays the time since the script ran. How can I do the math so that the web page will

Re: [PHP] Date Calculation

2004-10-28 Thread Mike Tuller
I guess. Are you telling me that I should take the timestamp, convert it to epoch time, the us the time function to get the current epoch time, then subtract the timestamp epoch time from the current epoch time? I think that is what you are saying. I know I can get the current epoch time in

Re: [PHP] Date Calculation

2004-10-28 Thread Tom Rogers
Hi, Friday, October 29, 2004, 4:51:20 AM, you wrote: MT I have a shell script that inserts the unix date and time that the MT script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT MT 2004. I would like to have my web page do the math so that it displays MT the time since the

Re: [PHP] Date Calculation

2004-10-28 Thread Mike Tuller
Ok, so here is what I have. Please check to see if there is a better way. There are a lot of database calls to me. ? $database_name = CETechnology; $host = server; $login = username; $password = password; $ethernet_address = 00:01:93:8e:69:50; $db_connect = mysql_connect( $host, $login,

Re: [PHP] Date Calculation

2004-10-28 Thread Jennifer Goodie
-- Original message from Mike Tuller [EMAIL PROTECTED]: -- Ok, so here is what I have. Please check to see if there is a better way. There are a lot of database calls to me. There are. Do it in one query. $query = SELECT * FROM hardware_assets WHERE

Re[2]: [PHP] Date Calculation

2004-10-28 Thread Tom Rogers
Hi, Friday, October 29, 2004, 7:19:09 AM, you wrote: MT Ok, so here is what I have. Please check to see if there is a better MT way. There are a lot of database calls to me. MT ? MT $database_name = CETechnology; MT $host = server; MT $login = username; MT $password = password; MT

[PHP] date function

2004-09-19 Thread Magdy
Hi, i'm pleasure to write to u and hope to finde an answer.. my problem is with date( ) function which is display a GMT time which is different from my zone with 3 hours,,,how can i correct this. Thanks in advance. Magdy

Re: [PHP] date function

2004-09-19 Thread Jordi Canals
On Sun, 19 Sep 2004 14:29:54 +0300, Magdy [EMAIL PROTECTED] wrote: my problem is with date( ) function which is display a GMT time which is different from my zone with 3 hours,,,how can i correct this. The date() function, gets the system current date/time if you don't pass the second

[PHP] Date and time

2004-08-11 Thread DIFF FanneHH
Hi, I have this date in timestamp format: $a= 20040810114155; I want to add 7 days to this date. How can i do that? Thanks Home, no matter how far... http://www.home.ro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date and time

2004-08-11 Thread John Holmes
DIFF FanneHH wrote: I have this date in timestamp format: $a= 20040810114155; I want to add 7 days to this date. How can i do that? echo date('YmdHis',mktime(substr($a,8,2),substr($a,10,2),substr($a,12,2),substr($a,4,2),substr($a,6,2)+7,substr($a,0,4))); Looks like a MySQL timestamp. If so, you

[PHP] Re: [SPAM] [PHP] Date and tim

2004-08-11 Thread Justin Patrin
On 11 Aug 2004 10:35:37 -, DIFF FanneHH [EMAIL PROTECTED] wrote: Hi, I have this date in timestamp format: $a= 20040810114155; Convert it to a unix timestamp (that's a mysql timestamp), then add 7 days worth of seconds to it. Search the archives or the web for more. If you're stuck,

[PHP] date difference

2004-07-15 Thread JOHN MEYER
Hello, Is there a function to determine the difference between two dates? I am asking so I can do some date verification for COPA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date Diff function

2004-06-28 Thread Richard Davey
Hi all, Does anyone have a date-diff function in PHP that *doesn't* use Unix time stamps? I need to calculate differences between two date values, but the range well exceeds that which date supports on our server. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development

[PHP] Date Select

2004-06-25 Thread Tom Chubb
How can I query a MySQL table to get the latest results from a date field? Basically, I am inserting several records at a time at the end of each week. I want to have a page that displays the results for the last week only. The date format in the field is -MM-DD

[PHP] Date object

2004-06-01 Thread Ryan A
Hi, A bit confused, I downloaded a function and it says it takes a date objectwhat exactly is a date object? This is exactly what is written The function takes a date object as its only parameter. I checked out the manual and tried a timestamp, and then checked date, getdate, mktime etc am

Re: [PHP] Date object

2004-06-01 Thread John W. Holmes
From: Ryan A [EMAIL PROTECTED] A bit confused, I downloaded a function and it says it takes a date objectwhat exactly is a date object? This is exactly what is written The function takes a date object as its only parameter. No such thing. If you look at the code, though, it looks like

Re: [PHP] Date object

2004-06-01 Thread Ryan A
From: Ryan A [EMAIL PROTECTED] A bit confused, I downloaded a function and it says it takes a date objectwhat exactly is a date object? This is exactly what is written The function takes a date object as its only parameter. No such thing. If you look at the code, though, it

Re: [PHP] Date object

2004-06-01 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): From: Ryan A [EMAIL PROTECTED] A bit confused, I downloaded a function and it says it takes a date objectwhat exactly is a date object? This is exactly what is written The function takes a date object as its only parameter. No

[PHP] Date Function - Empty Value

2004-05-19 Thread Gabe
Environment: PHP 4.3.6 Access DB W2K IIS 5 I'm trying to store a date in a date/time field using the short date format ( m/d/ ). For some reason it won't let me post an empty value to that field in the DB. I've tried using empty quotes ( ) or NULL and I always get a datatype mismatch sql

[PHP] date()

2004-03-18 Thread Khalid Judeh
hello all, i am new to php, i am trying to call the date function this way: ?php echo date(d/m/y); ? and the result i get is: object18/03/04 any help would be appreciated Khaled Jouda cell. phone: 0163-2382758 fax: 1(801)439-1253

Re: [PHP] date()

2004-03-18 Thread Matt Matijevich
snip i am new to php, i am trying to call the date function this way: ?php echo date(d/m/y); ? and the result i get is: object18/03/04 any help would be appreciated /snip I recommend the manual and google http://www.php.net/manual/en/ref.datetime.php http://www.php.net/date

RE: [PHP] date()

2004-03-18 Thread Sam Masiello
Are you sure that you aren't echoing something else somewhere in your script as well? My output from this code is: 18/03/04 --Sam Khalid Judeh wrote: hello all, i am new to php, i am trying to call the date function this way: ?php echo date(d/m/y); ? and the result i get is:

[PHP] date() before 1 Jan 1970...

2004-03-08 Thread adwinwijaya
Hello php-general, how to display date like Monday, 1 January 1903 18:11 pm in php ? (since the date() function only able to display date before 1970) (and why it only support date after 1 Jan 1970) ? thanks -- Best regards, adwin -- PHP General Mailing List (http://www.php.net/) To

[PHP] Date function

2004-03-05 Thread Jason Baker
Hello, I am new to using the date function. I am in the need of a script that changes an image on a web page on the first day of each month and keeps the image there until the first day of the next month. I have tried to look for something that could come close but still didnt work. Can you

Re: [PHP] Date function

2004-03-05 Thread Richard Davey
Hello Jason, Friday, March 5, 2004, 1:51:57 PM, you wrote: JB Hello, I am new to using the date function. I am in the need of a JB script that changes an image on a web page on the first day of each JB month and keeps the image there until the first day of the next month. JB I have tried to

[PHP] date functions

2004-02-24 Thread Matthew Oatham
Hi, You might already be fed up with my posts but I'm a complete PHP newbie and find these groups are the best way to learn! Anyway I have the database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I only want to show the user the date in the

RE: [PHP] date functions

2004-02-24 Thread Pablo Gosse
snip You might already be fed up with my posts but I'm a complete PHP newbie and find these groups are the best way to learn! Anyway I have the database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I only want to show the user the date in the format

RE: [PHP] date functions

2004-02-24 Thread Sam Masiello
Depending on your database engine (which you didn't mention in your post), some allow you to format the date however you want it as you pull it out of the database in your sql query. I always find this to be the easiest way to do it. That way you don't have to worry about formatting the data

Re: [PHP] date functions

2004-02-24 Thread Adam Bregenzer
On Tue, 2004-02-24 at 13:29, Matthew Oatham wrote: You might already be fed up with my posts but I'm a complete PHP newbie and find these groups are the best way to learn! Anyway I have the database date in the format: -mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I

[PHP] date

2004-02-19 Thread Madcat
hi there how do i make php give me yesterday's date? i tried date(Y-m-d)-1 but if today would be the 1st of july (2004-07-01), yesterday would be 00. july (2004-07-00) according to that calculator. is there any way to make this one get it right? without any if-structures if possible regards

RE: [PHP] date

2004-02-19 Thread Jay Blanchard
[snip] hi there how do i make php give me yesterday's date? i tried date(Y-m-d)-1 but if today would be the 1st of july (2004-07-01), yesterday would be 00. july (2004-07-00) according to that calculator. is there any way to make this one get it right? without any if-structures if possible

Re[2]: [PHP] date

2004-02-19 Thread Tom Rogers
Hi, Friday, February 20, 2004, 6:32:27 AM, you wrote: JB [snip] JB hi there JB how do i make php give me yesterday's date? JB i tried JB date(Y-m-d)-1 JB but if today would be the 1st of july (2004-07-01), yesterday would be JB 00. JB july (2004-07-00) according to that calculator. JB is

[PHP] date() funtion language

2004-02-11 Thread Thiago Pavesi
Hello, Does any one knows how do I set my date() function to return the days of the week and moth in my own language (brazilian portuguese)? Thanks, Thiago Pavesi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date() funtion language

2004-02-11 Thread Richard Davey
Hello Thiago, Wednesday, February 11, 2004, 8:03:47 PM, you wrote: TP Does any one knows how do I set my date() function to return the days TP of the week and moth in my own language (brazilian portuguese)? setlocale() -- Best regards, Richardmailto:[EMAIL

[PHP] Date comparison

2004-02-04 Thread BEOI 7308
Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried (strtotime($second_date)-strtotime($first_date)) but what i get is a timestamp and i dont know what to do with it Is there already a function to print the result in a human

RE: [PHP] Date comparison

2004-02-04 Thread Burhan Khalid
BEOI 7308 wrote: Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried (strtotime($second_date)-strtotime($first_date)) but what i get is a timestamp and i dont know what to do with it Is there already a function

[PHP] [ERR] RE: [PHP] Date comparison

2004-02-04 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) ---BeginMessage--- BEOI 7308 wrote: Hi I want to substract $first_date to $second_date and print the result this way : xx days, xx hours, xx minutes i tried

[PHP] date(F) +1

2004-01-26 Thread John Taylor-Johnston
Did I miss something at the FAQ? date(F); gives me this month. Can I get it to give me next month? These combinations don't work: ?php echo date(F)+1; ? ?php echo date(F+1); ? What is the minimum version for this to work? Or is this my problem? It echoes 1 in the html.

Re: [PHP] date(F) +1

2004-01-26 Thread Martin Luethi
try ?= date(F, strtotime(+1 month)); ? g. martin luethi Mon, 26 Jan 2004 03:08:30 -0500 John Taylor-Johnston [EMAIL PROTECTED]: Did I miss something at the FAQ? date(F); gives me this month. Can I get it to give me next month? These combinations don't work: ?php echo date(F)+1; ? ?php echo

[PHP] date fiedl

2004-01-19 Thread Diana Castillo
Does anyone know if there is any speed advantage to saving a date as a unix timestamp or a numeric field instead of a date field? (in Mysql) thanks, -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL

FW: [PHP] date fiedl

2004-01-19 Thread Angelo Zanetti
alphanumeric characters being -'s. The best way to probably find out is to select a large amount of records in both formats and see which is quicker. hth -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 1:02 PM To: [EMAIL PROTECTED] Subject: [PHP

Re: [PHP] date fiedl

2004-01-19 Thread Miguel J. Jimnez
Diana Castillo wrote: Does anyone know if there is any speed advantage to saving a date as a unix timestamp or a numeric field instead of a date field? (in Mysql) thanks, Well, I prefer using an int(14) field for saving unix dates (so, I save the date as unix and not as date field). Thus is

[PHP] Date Listing

2003-12-10 Thread Pablo Zorzoli
Hi everyone! Let's see if you can help me with this odd function i want to do. Imagine i have to dates,for example: $date1=2002-10-01 $date2= 2003-12-10 I want a function to list all the dates that are between these two. 2002-10-01 2002-10-02 2002-10-03 . . 2003-12-09 2003-12-10

RE: [PHP] Date Listing

2003-12-10 Thread Jay Fitzgerald
PROTECTED] Sent: Wednesday, December 10, 2003 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Date Listing Hi everyone! Let's see if you can help me with this odd function i want to do. Imagine i have to dates,for example: $date1=2002-10-01 $date2= 2003-12-10 I want a function to list all the dates

RE: [PHP] Date Listing

2003-12-10 Thread Jay Blanchard
[snip] Let's see if you can help me with this odd function i want to do. Imagine i have to dates,for example: $date1=2002-10-01 $date2= 2003-12-10 I want a function to list all the dates that are between these two. 2002-10-01 2002-10-02 2002-10-03 . . 2003-12-09 2003-12-10 Has

[PHP] date conversion

2003-12-10 Thread Adam Williams
Hi, is there a PHP function that will convert MM/DD/ to MMDD? Also I will need to take into affect some people may put in M/D/ (some people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way to do this? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] date conversion

2003-12-10 Thread Matt Matijevich
snip Hi, is there a PHP function that will convert MM/DD/ to MMDD? Also I will need to take into affect some people may put in M/D/ (some people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way to do this? /snip take a look at these functions

RE: [PHP] date conversion

2003-12-10 Thread Andrew Wilson
: Thursday, 11 December 2003 8:42 AM To: [EMAIL PROTECTED] Subject: [PHP] date conversion Hi, is there a PHP function that will convert MM/DD/ to MMDD? Also I will need to take into affect some people may put in M/D/ (some people may put in 1 instead of 01, 2 instead of 02, etc

RE: [PHP] date conversion

2003-12-10 Thread Daniel Purdy
ADAM WILLIAMS snip Hi, is there a PHP function that will convert MM/DD/ to MMDD? Also I will need to take into affect some people may put in M/D/ (some people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way to do this? /snip MATT MATIJEVICH snip take a look at

[PHP] date convertion

2003-12-09 Thread Adam Williams
I have a script where a user inputs a date in MMDD format, and I need to convert it to month day, year. For example they will enter 20031209 and I need the script to return the date as December 09, 2003. They won't be entering today's date, so I can't use the timestamp with the date

RE: [PHP] date convertion

2003-12-09 Thread Dan Joseph
Hi, I have a script where a user inputs a date in MMDD format, and I need to convert it to month day, year. For example they will enter 20031209 and I need the script to return the date as December 09, 2003. They won't be entering today's date, so I can't use the timestamp with the date

Re: [PHP] date convertion

2003-12-09 Thread CPT John W. Holmes
I have a script where a user inputs a date in MMDD format, and I need to convert it to month day, year. For example they will enter 20031209 and I need the script to return the date as December 09, 2003. They won't be entering today's date, so I can't use the timestamp with the date

RE: [PHP] date() function doesn't seem to work right...

2003-12-02 Thread Wouter van Vliet
On maandag 1 december 2003 21:04 Curt Zirzow told the butterflies: * Thus wrote Scott Fletcher ([EMAIL PROTECTED]): When I do this script, I didn't get a : and numbers in second. --snip-- date(Y-m-d H:i:s); --snip-- works fine with phpversion() 4.2.2 Curt -- If eval() is the

[PHP] date() function doesn't seem to work right...

2003-12-01 Thread Scott Fletcher
Hi Everyone!!! I noticed that date() function act a little funny, so I am wondering if anyone of you have noticed this problem or not. I'm just curious because I wanna know if it is my issue or is it a general issue for everyone. I'm using PHP version 4.2.3 on Unix machine. Please don't

RE: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Jay Blanchard
[snip] When I do this script, I didn't get a : and numbers in second. --snip-- date(Y-m-d H:i:s); --snip-- [/snip] When I cut and paste your code (PHP v 4.3.n) it works OK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Thijs Lensselink
Scott Fletcher wrote on maandag 1 december 2003 16:41: When I do this script, I didn't get a : and numbers in second. : --snip-- : date(Y-m-d H:i:s); : --snip-- : : But when I do this script by adding a period to it, it worked : okay. --snip-- : date(Y-m-d H:i:s.); : --snip-- : : Thanks, :

Re: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Scott Fletcher
Okay thanks... I'll do a workaround for now until PHP get upgraded in the near future. Thijs Lensselink [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Fletcher wrote on maandag 1 december 2003 16:41: When I do this script, I didn't get a : and numbers in second. : --snip--

<    1   2   3   4   5   6   7   8   9   10   >