[PHP] Re: Time zone in date function

2012-01-31 Thread Ian
On 31/01/2012 01:55, Ron Piggott wrote: On my clients account when I use “echo date(‘D, d M Y H:i:s');” the output is 5 hours ahead of us. How do I change it to my local time? Is there a way to specify “Eastern” time zone? I expect this would work: echo date(‘D, d M Y H:i:s' , (

[PHP] Re: Time zone in date function

2012-01-31 Thread Jonesy
On Tue, 31 Jan 2012 14:57:41 +1300, Simon J Welsh wrote: On 31/01/2012, at 2:55 PM, Ron Piggott wrote: On my clients account when I use ?echo date(?D, d M Y H:i:s');? the output is 5 hours ahead of us. How do I change it to my local time? Is there a way to specify ?Eastern? time zone?

Re: [PHP] Re: Time zone in date function

2012-01-31 Thread Matijn Woudt
On Tue, Jan 31, 2012 at 4:22 PM, Jonesy gm...@jonz.net wrote: On Tue, 31 Jan 2012 14:57:41 +1300, Simon J Welsh wrote: On 31/01/2012, at 2:55 PM, Ron Piggott wrote: On my clients account when I use ?echo date(?D, d M Y H:i:s');? the output is 5 hours ahead of us.  How do I change it to my

[PHP] Re: Time zone in date function

2012-01-31 Thread Jonesy
On Tue, 31 Jan 2012 17:15:48 +0100, Matijn Woudt wrote: On Tue, Jan 31, 2012 at 4:22 PM, Jonesy gm...@jonz.net wrote: Is there a reason _not_ to use viz:        putenv(TZ=America/Anguilla);  ?? Or, is it simple Just The Linux Way(tm) , i.e. there's always more than one way to do a

Re: [PHP] Re: Time zone discrepancy - America/New_York = CDT?

2009-11-01 Thread Mattias Thorslund
The output I get (after adding newlines to the output) is: America/New_York EST EST EST PHP 5.2.10. I suspect this comes from the operating system. Maybe update your tzdata package if you're on a Linux system. Cheers, Mattias Nathan Lebovic wrote: Sorry there was a typo in that output.

[PHP] Re: Time Problem: always ten past xx

2009-10-06 Thread Carsten Wiedmann
Matthias Laug schrieb: var_dump(strftime(%d.%m.%Y %H:%m,$time)); ---^ The minutes are always 10, no matter what time I get. %m = month %M = minute Regards, Carsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ollisso
On Wed, 05 Aug 2009 22:18:31 +0300, Shawn McKenzie nos...@mckenzies.net wrote: So, obviously not PHP related, but I'm looking for thoughts on the best way to record time sheets in a DB. A time sheet for hours worked per day, not like a time clock where you start and stop. The two

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ralph Deffke
sorry man, but a good data design keeps only data in a table u can not calculate. in ur case that would be only date start and end time. refernces to user and project/tasks in other tables. ur time sheet is definately a job for a report. that type of design limits u to nothing. a user can start

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ben Dunlap
sorry man, but a good data design keeps only data in a table u can not calculate. in ur case that would be only date start and end time. refernces to user and project/tasks in other tables. ur time sheet is definately a job for a report. that type of design limits u to nothing. a user can

[PHP] Re: Time keeping in DB

2009-08-05 Thread Shawn McKenzie
Ben Dunlap wrote: sorry man, but a good data design keeps only data in a table u can not calculate. in ur case that would be only date start and end time. refernces to user and project/tasks in other tables. ur time sheet is definately a job for a report. that type of design limits u to

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ben Dunlap
OK, I think I understand most points except the start and stop time. Every time sheet I have used, SAP and several other smaller ones, I enter a weeks worth of time data like: Project Sun Mon TuesWed ThurFri Sat

[PHP] Re: Time keeping in DB

2009-08-05 Thread Ralph Deffke
as I said, the job is to store a time sheet. u came up with: 1. One record for each 7 day week (year, week_num, d1, d2, d3, d4, d5, d6, d7) where the dX field holds the hours worked 2. One record for each day (date, hours) it seems that just the first record is fine. in a data design u dont hold

[PHP] Re: Time keeping in DB

2009-08-05 Thread Shawn McKenzie
Ralph Deffke wrote: as I said, the job is to store a time sheet. u came up with: 1. One record for each 7 day week (year, week_num, d1, d2, d3, d4, d5, d6, d7) where the dX field holds the hours worked 2. One record for each day (date, hours) it seems that just the first record is fine.

[PHP] Re: Time keeping in DB

2009-08-05 Thread Shawn McKenzie
Ben Dunlap wrote: OK, I think I understand most points except the start and stop time. Every time sheet I have used, SAP and several other smaller ones, I enter a weeks worth of time data like: Project Sun Mon TuesWed ThurFri Sat

[PHP] Re: Time zones and $_ENV vs getenv

2008-11-04 Thread John Coppens
On Mon, 3 Nov 2008 13:01:14 -0200 [EMAIL PROTECTED] (John Coppens) wrote: I'm confused... Can someone point me to some more tests I could do? Solved. Apparently the apachectl start/stop/restart script didn't work correctly, or wasn't able to do its work. I _thought_ I had restart apache after

[PHP] Re: time or date picker ?

2007-03-19 Thread Manuel Lemos
Hello, on 03/19/2007 04:11 PM Alain Roger said the following: Hi, I've already seen some webpages which include a time or date picker (like a calendar) written in PHP and on which user could type the year and after, select the month and date (using month). I'm looking for something like

[PHP] Re: Time-Zone juggling

2006-11-08 Thread Colin Guthrie
Going a bit OT but who cares :) tedd wrote: I just wonder how they came up with the acronym of UTC for Coordinated Universal Time? In 1970 the Coordinated Universal Time system was devised by an international advisory group of technical experts within the International Telecommunication Union

[PHP] Re: Time-Zone juggling

2006-11-08 Thread tedd
At 7:06 PM + 11/8/06, Colin Guthrie wrote: Going a bit OT but who cares :) tedd wrote: I just wonder how they came up with the acronym of UTC for Coordinated Universal Time? In 1970 the Coordinated Universal Time system was devised by an international advisory group of technical

[PHP] Re: time zone problem

2005-08-31 Thread Satyam
Go to: http://www.timeanddate.com/worldclock/custom.html?cities=51,31,1038,224,179 The numbers at the end are my personal selection of cities I care about, but you can change it and the cities database is a long one. It is updated for daylight savings when applicable. Satyam Sergey [EMAIL

[PHP] Re: Time problem

2003-11-12 Thread Kim Steinhaug
Well, If your into your programming, have a look at this one : http://www.phpclasses.org/browse.html/package/1199.html It does something else, but the same approach can be used to format your readable dates. This wheel has surely been invented already, so you probably should do some googling to

[PHP] Re: time stamp screwing up

2003-01-06 Thread Scott Fletcher
Instead of the php function, 'time()'. Try 'date()'. Somethine like this --clip-- ? //Long way around date(Y).-.date(m).-.date(d); //Shortcut date(Y-m-d); ? --clip-- You can customize the way you want the time format to be displayed. You can find it at

[PHP] Re: time to seconds

2002-09-18 Thread Denis Basta
Hello, Try this: SELECT SUM(duration) AS summ, ..., ..., ..., FROM table1 WHERE condition Hope it will help ya! Regards, Denis Basta. Adi [EMAIL PROTECTED] wrote in message 008701c25ef1$01d94260$9600a8c0@adi">news:008701c25ef1$01d94260$9600a8c0@adi... Hi, I have a table table1, with a column

Re: [PHP] Re: time to seconds

2002-09-18 Thread Marek Kilimajer
won't help, it's forbidden to mix aggregate columns with non aggregate without a group by clause. Make your first query and then the sum. Denis Basta wrote: Hello, Try this: SELECT SUM(duration) AS summ, ..., ..., ..., FROM table1 WHERE condition Hope it will help ya! Regards, Denis Basta.

[PHP] Re: time stamp

2002-08-28 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I am using PHP with MySQL and have a timestamp field in my db table. What would be the easiest way to get the newest timestamp out of the db? Thanks in Advance Steve Use an ORDER BY on the timestamp field in your select statement,

[PHP] RE: time stamp

2002-08-28 Thread Lopez David E-r9374c
Steve Try: SELECT MAX(field_timestamp) from table1; David -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 27, 2002 5:21 PM To: mysql; PHP Subject: time stamp I am using PHP with MySQL and have a timestamp field in my db table. What

[PHP] RE: time stamp

2002-08-28 Thread Steve Buehler
Thank you David Lopez and David Robley. That was what I was looking for. Here is how I used it. $date=getlastupdatetime(array(team_id = $team_id, season = $season, div_id = $div_id)); echo $date; function

[PHP] Re: Time to Calculate Time

2002-07-09 Thread Richard Lynch
i have variables $Start, $End each with a timestamp 2 hours apart (2002070714, 2002070716) respectively 01234567890123 How do i calculate those to timestamps to get the answer 2? I've tried working them into unix timestamps and then calculating but no luck... any one got any

[PHP] Re: Time to Calculate Time

2002-07-08 Thread Lord Loh.
?php function getmicrotime(){ list($usec, $sec) = explode( ,microtime()); $time=$sec+$usec; return $time; } $start=getmicrotime(); echo wasting time...br; $i=0; do{ $i++; }while($i=100); $stop=getmicrotime(); $difference=($stop-$start)/3600; echo

[PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jay Blanchard
Quite frequently on this list and others there are questions where it is obvious that the manual or list archives have not been searched. Heck, some of these are cross posted to many lists where the sender may think that they will get relevant information. On the MySQL list the footer even has

Re: [PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating TheDatabase

2002-06-04 Thread Rasmus Lerdorf
If you had searched the list archives yourself you would have seen that this has been suggested a few times and rejected each time because nobody would stick around and answer the newbie questions and newbies, being newbies, would figure out where the people who can answer their questions hang

RE: [PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jay Blanchard
[snip] If you had searched the list archives yourself you would have seen that this has been suggested a few times and rejected each time because nobody would stick around and answer the newbie questions and newbies, being newbies, would figure out where the people who can answer their questions

Re: [PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 21:22, Rasmus Lerdorf wrote: If you had searched the list archives yourself you would have seen that this has been suggested a few times and rejected each time because nobody would stick around and answer the newbie questions and newbies, being newbies, would figure

[PHP] Re: Time/date function MYSQL-UNIX

2002-05-24 Thread Hugh Bothwell
Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a built in PHP function which will convert a MySQL type date (DDMM or whatever) into a unix timestamp so it can be used with the other PHP time and date functions? I'm currently using substr()

[PHP] Re: Time/date function MYSQL-UNIX

2002-05-24 Thread Peter
OK cheers. I'll have a try. I saw UNIX_TIMESTAMP() in the MySQL docs but I didn't quite understand it (PHP is MUCH easier for me!) Thanks for the example too Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a built in PHP function which will

[PHP] Re: time limit ?

2002-03-05 Thread ??
However, the value cannot transfer by this method. I want the value transfer to a txt file ,although it is not completed -- ? http://fansing.hk.st/ ACG(!) http://acgzone.hk.st/ George Whiffen [EMAIL PROTECTED] ???:[EMAIL PROTECTED] ÁC¬P wrote: How can I set a time limit

[PHP] Re: time limit ?

2002-03-04 Thread George Whiffen
ÁC¬P wrote: How can I set a time limit for a form made by PHP (i.e.the value will auto transfer after a certain time) -- Ác¬P¤u§@«Ç http://fansing.hk.st/ ACG¤¬°Ê°Ï°ì(¤j®a¦h¨Ç¨Ó¶K¹Ï§a!) http://acgzone.hk.st/ HTML forms execute in the client's browser, which does not care at all whether

RE: [PHP] Re: time limit ?

2002-03-04 Thread Darren Gamble
Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: George Whiffen [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 12:16 PM To: [EMAIL PROTECTED]; Ác¬P Subject: [PHP] Re: time limit

[PHP] Re: Time Zone Offset?

2002-01-13 Thread Jim Winstead
Marvin Sanders [EMAIL PROTECTED] wrote: I'm using the PHP date() function on my site, but since my hosting company (Pair Networks) is on the East Coast and I'm on the West Coast, everything shows as three hours later (for most of my visitors, anyway). Pair tells me there's no setting I can

[PHP] Re: Time function question/

2001-12-27 Thread George Nicolae
try date(d-M-Y,rand (mktime(0,0,0,1,1,1970),mktime(0,0,0,12,31,1985))) mktime works only from January 1 1970 -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com Mehmet Kamil Erisen [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: time stuff

2001-12-10 Thread Hugh Bothwell
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... suppose the date is 12-10-01 -- $timestamp = time(); //this is the sent on date $yd_expl = explode(':',08-01-01); Uh, better make that ... = explode('-', '08-01-01');

[PHP] Re: Time out for file()?

2001-11-15 Thread Richard Lynch
Jean-Arthur Silve wrote: Hi ! I use the file function for accessing to pages on another server. It works perfectly. But if the server does not respond or is too long to send datas, the file function wait too long.. Is there a way to tune the time out ?? I would like that id the

[PHP] Re: Time out for file()?

2001-11-14 Thread _lallous
from the manual ?php $fp = fsockopen(www.php.net, 80); if(!$fp) { echo Unable to open\n; } else { fputs($fp,GET / HTTP/1.0\n\n); $start = time(); socket_set_timeout($fp, 2); $res = fread($fp, 2000); //var_dump(socket_get_status($fp)); fclose($fp); print $res; } ?

[PHP] Re: Time out for file()? - Use fsockopen

2001-11-14 Thread George Whiffen
Jean-Arthur, Your set_time_limit/shutdown function solution looks like a clever trick. If you can come up with that you might just as well do the proper job with an fsockopen and socket_set_timeout. The manual pages on fsockopen, socket_set_timeout plus the user comments have plenty of useful

[PHP] Re: time limt

2001-10-02 Thread Richard Lynch
file() won't let you set the time-out... But http://php.net/fopen will. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

[PHP] Re: time

2001-08-22 Thread Raphael Pirker
convert both to a timestamp... check http://www.php.net/manual/en/function.mktime.php for more info -- 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

[PHP] Re: Time Taken to Process

2001-07-16 Thread Philip Hallstrom
Look at the recent subject entitled echo vs printf. There's code to do exactly what you want. I don't think there's anything built in, but I could be wrong. On Mon, 16 Jul 2001, Phil Spitler wrote: Does anyone know an easy way to tell how long a page takes to run in ms. Maybe some variable

[PHP] RE: Time Taken to Process

2001-07-16 Thread Phil Spitler
yeah, I just saw that, thanks! :) Phil -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 2:12 PM To: Phil Spitler Cc: [EMAIL PROTECTED] Subject: Re: Time Taken to Process Look at the recent subject entitled echo vs printf. There's

RE: [PHP] RE: Time Taken to Process

2001-07-16 Thread Michael Geier, CDM Systems Admin
try the attached class. $t = new timer; $t-start(); // some code; $t-stop(); $diff = $t-gettime(); echo $diff; -Original Message- From: Phil Spitler [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: Time Taken to Process yeah, I

[PHP] Re: time compare in my sql

2001-07-12 Thread elias
try this: select * from table where TIME(time_field) = 12 Jack [EMAIL PROTECTED] wrote in message 060101c10b0d$cd941940$[EMAIL PROTECTED]">news:060101c10b0d$cd941940$[EMAIL PROTECTED]... Hi folks I have a filed in data type time , how would I compare the value submited from the form with the

Re: [PHP] re: time

2001-06-22 Thread [EMAIL PROTECTED]
in details without having user to close the browser? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts - Original Message - From: Jason Murray [EMAIL PROTECTED] To: 'Jon Yaggie' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 11:52 PM Subject: RE: [PHP] re

RE: [PHP] re: time

2001-06-21 Thread Jason Murray
actually i believe if you date() it gives you users system time it is the problem i have run into in the script i am trying to modify. the original person used date() and it clear shows my time. As much as i admit the possibility of their server being in Siberia but I doubt it. PHP

[PHP] re: time

2001-06-20 Thread Jon Yaggie
actually i believe if you date() it gives you users system time it is the problem i have run into in the script i am trying to modify. the original person used date() and it clear shows my time. As much as i admit the possibility of their server being in Siberia but I doubt it. Thank