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' , (
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?
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
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
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.
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:
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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.
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,
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
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
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
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
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
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
[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
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
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()
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
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
Á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
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
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
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
[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');
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
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;
}
?
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
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
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
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
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
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
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
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
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
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
52 matches
Mail list logo