[PHP] date and time conversion

2005-09-11 Thread babu
Hi, how to convert DD.MM.YYand HH:MM:SS into mysql date( '-MM-DD' ) and time format. I think the time is same as HH:MM:SS. Are there any php built in functions , or need to convert them using regular expressions. thanks babu - How

Re: [PHP] date and time conversion

2005-09-11 Thread Burhan Khalid
babu wrote: Hi, how to convert DD.MM.YYand HH:MM:SS into mysql date( '-MM-DD' ) and time format. I think the time is same as HH:MM:SS. [EMAIL PROTECTED] ~ $ php -r 'echo date(Y-m-d,strtotime(str_replace(.,/,12.12.05))).\n;' 2005-12-12 Hope that helps :) See http://php.net/date

[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] Date and time problem

2003-02-02 Thread Denis L. Menezes
Hello friends. The follwing code displays the date on my webpage : echo date (l dS of F Y h:i:s A); However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the above code? Thanks Denis

Re: [PHP] Date and time problem

2003-02-02 Thread Tom Rogers
Hi, Monday, February 3, 2003, 11:10:36 AM, you wrote: DLM Hello friends. DLM The follwing code displays the date on my webpage : DLM echo date (l dS of F Y h:i:s A); DLM However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the above

Re: [PHP] Date and time problem

2003-02-02 Thread Larry E. Ullman
echo date (l dS of F Y h:i:s A); However, I need to add 12 hrs to this date befor displaying on the webpage. Can someone please help me to modify the above code? $t = time() + (12 * 60 * 60); echo date (l dS of F Y h:i:s A, $t); Larry -- PHP General Mailing List (http://www.php.net/) To

[PHP] Date and time functions

2002-05-16 Thread DC
Hi all, I am on the East Coast of Australia. Do you know if by default if the date/time display will display only East coast Australia time, or will display from the user's time zone? eg Will USA users see the Australian time or their own time? Would this cause a issue with timestamping an

Re: [PHP] Date and time functions

2002-05-16 Thread Miguel Cruz
On Fri, 17 May 2002, DC wrote: I am on the East Coast of Australia. Do you know if by default if the date/time display will display only East coast Australia time, or will display from the user's time zone? eg Will USA users see the Australian time or their own time? Would this cause a

RE: [PHP] Date and time functions

2002-05-16 Thread David Freeman
this cause a issue with timestamping an order when it comes to writing to a mySQL database? I presume we're talking about php date/time stuff here? In that case, php gets it's date/time from the server it is running on. If your server is on the east coast of Australia then you'll have local time

[PHP] Date and Time

2002-04-28 Thread baldey_uk
Hi all, Anyone know any reason that the date function would return 2am in the morning as 102 if i use it in the following manner? $time=date(H:i:s); print $time; this outputs 102:14:51 instead of 02:14:51, anyone know where the 1 comes from? and why its there? Cheers From baldey_uk --

RE: [PHP] Date and Time

2002-04-28 Thread John Holmes
To: Php-General Subject: [PHP] Date and Time Hi all, Anyone know any reason that the date function would return 2am in the morning as 102 if i use it in the following manner? $time=date(H:i:s); print $time; this outputs 102:14:51 instead of 02:14:51, anyone know where the 1 comes

[PHP] date and time triggerring

2002-01-25 Thread Michael P. Carel
Hi there, Is there any one who could give me an idea regarding the date and time triggering PHP script. This date and time script whould gives an output if ever it hit Jan 1 and print's it's year. Any idea? Thanks in advance, and also to all who keeps on helping a newbie like me. Regards

[PHP] Date and Time Functions like MySQL?

2001-05-18 Thread Chris Lee
Hi, Does anyone implement Date and Time Functions for PHP like MySQL? http://www.mysql.com/doc/D/a/Date_and_time_functions.html I know there is already have functions for PHP, however it cannot handle year expect it was between 1902 and 2037. http://www.php.net/manual/en/ref.datetime.php