Re: [PHP] GMT

2005-01-04 Thread Richard Lynch
Bruno B B Magalhães wrote: > Hi you all, > > How do you work with GMT time-zones? I mean, I´ve developed a support > system, with projects, bugs, tasks, etc... but as I user date()ç,I is 6 > hours late from my client´s time-zone... > > And I would like to make it a little more dynamic than just put

Re: [PHP] GMT

2005-01-04 Thread Bruno B B Magalhães
he time, then do a correct offset for it. But for something already done, see http://us3.php.net/manual/en/function.gmdate.php Travis - Original Message - From: "Bruno B B Magalhães" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 04, 2005 5:04 AM Subject: [PHP] GMT Hi yo

Re: [PHP] GMT

2005-01-04 Thread Travis Conway
.php.net/manual/en/function.gmdate.php Travis - Original Message - From: "Bruno B B Magalhães" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 04, 2005 5:04 AM Subject: [PHP] GMT Hi you all, How do you work with GMT time-zones? I mean, I´ve developed a support system, wit

[PHP] GMT

2005-01-04 Thread Bruno B B Magalhães
Hi you all, How do you work with GMT time-zones? I mean, I´ve developed a support system, with projects, bugs, tasks, etc... but as I user date()ç,I is 6 hours late from my client´s time-zone... And I would like to make it a little more dynamic than just put a variable in the code and add to th

[PHP] GMT to local time (CDT in this case)

2004-07-13 Thread Chirag Shukla
// I am using the convention (assumption) of "07/04/2004 14:45" $processdate = "07/04/2004 14:45"; // gmttolocal is a function // i am passing it 2 parameters: // 1)the date in the above format and // 2)time difference as a number; -5 in our case (G

Re: [PHP] GMT

2004-01-11 Thread Sascha Kaufmann
Hello, you can use gmdate() http://ch2.php.net/gmdate regards Sascha Hassan Shaikh wrote: Hi, My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to store all dates/time in GMT (considering DST also). Appreciate any help! Once the date/time is in G

[PHP] GMT

2004-01-11 Thread Hassan Shaikh
Hi, My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to store all dates/time in GMT (considering DST also). Appreciate any help! Once the date/time is in GMT, it would be easier for me to display the date base on user preference (time zone differ

RE: [PHP] GMT strtotime() problem today!!

2003-04-01 Thread Ford, Mike [LSS]
> -Original Message- > From: Stuart Cochrane [mailto:[EMAIL PROTECTED] > Sent: 31 March 2003 15:45 > > I have a script that runs on over 250 Servers, all are running NT4. > here is the script: > > [php] > function last_sunday() { > return gmdate("Y-m-d", strtotime("Last Sunday")); >

[PHP] GMT strtotime() problem today!!

2003-03-31 Thread Stuart Cochrane
Im having big problems - I have a script that runs on over 250 Servers, all are running NT4. here is the script: [php] function last_sunday() { return gmdate("Y-m-d", strtotime("Last Sunday")); } echo "Last Sunday is returned as: ".last_sunday(); [/php] Some servers have 'automatically a

Re: [PHP] GMT Time

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 01:23 PM, Richard Fox wrote: > I want to compare a timestamp(14) field in a MySQL table with the > current > time. Currently I use the following pseudo-sql: > > select field from table where table.time < date("YmdHis", time()) > > only, the table timestamp is GMT

Re: [PHP] GMT Time

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 01:23 PM, Richard Fox wrote: > I want to compare a timestamp(14) field in a MySQL table with the > current > time. Currently I use the following pseudo-sql: > > select field from table where table.time < date("YmdHis", time()) > > only, the table timestamp is GMT

[PHP] GMT Time

2002-04-19 Thread Richard Fox
Ok, I give up. I want to compare a timestamp(14) field in a MySQL table with the current time. Currently I use the following pseudo-sql: select field from table where table.time < date("YmdHis", time()) only, the table timestamp is GMT time and the time function is returning local time. How do

Re: [PHP] GMT / TimeZone modifications

2002-04-11 Thread Peter H. Lemieux
- From: "Richard KS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 10, 2002 11:14 PM Subject: Re: [PHP] GMT / TimeZone modifications > Thanks for the quick answer! > Perhaps you have a smaller code snippet for this? > > NOTE It wouldn

Re: [PHP] GMT / TimeZone modifications

2002-04-10 Thread Richard KS
Thanks for the quick answer! Perhaps you have a smaller code snippet for this? NOTE It wouldn't mind if the entire website would go after one timezone, in this case from GMT+8 to GMT+1. -- Richard, oblivion creations http://oblivion.lunamorena.net [EMAIL PROTECTED] +46 (0) 736 849 531 f

Re: [PHP] GMT / TimeZone modifications

2002-04-10 Thread Rasmus Lerdorf
setenv() the appropriate timezone, then use strtotime() or mktime() to create a timestamp. Then setenv() to the other timezone and use date() or strftime() to convert back into a legible format. -Rasmus On Thu, 11 Apr 2002, Richard KS wrote: > Greetings. > > I was wondering if there are any go

[PHP] GMT / TimeZone modifications

2002-04-10 Thread Richard KS
Greetings. I was wondering if there are any good ways of converting a date into another time zone? For instance, from GMT+8 to GMT+1, is this possible in some way? Like if I have a date written 09.04.2002 14:11, I would like to format it into GMT+1.. Any solutions? Thanks alot -- Richard, ob

[PHP] GMT Time and Setting Cookies in PHP

2001-06-30 Thread Gonyou, Austin
What's a good method for setting time in GMT? as in the expiration date for cookies? I saw two functions to do this with, but I haven't been able to get them to output anything properly. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] --