On Tue, 31 Jan 2012 17:15:48 +0100, Matijn Woudt wrote:
> On Tue, Jan 31, 2012 at 4:22 PM, Jonesy 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 '
On Tue, Jan 31, 2012 at 4:22 PM, Jonesy 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 lo
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? tim
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'
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. This
Sorry there was a typo in that output. This is what I'm getting:
date_default_timezone_set("America/New_York");
echo date("e"); //output "America/New_York"
echo date("T"); //output "CST"
date_default_timezone_set("EST");
echo date("e"); //output "EST"
echo date("T"); //output "EST"
- Nathan
On
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: http://www.php
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
>> --
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
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
> 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
>
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 and 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 nothi
off course, but this is a different subject, means a finished, not changing
time sheet is to store. in that case I would prefere to use a single record
for each sheet holding an id, possibly a date and then a medium text holding
a simple xml notation of the sheet. the benetit of that concept is aga
> sorry man, but a good data design keeps only data in a table u can not
> calculate. in ur case that would be only and 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 an
sorry man, but a good data design keeps only data in a table u can not
calculate. in ur case that would be only and 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 ans stop as ma
On Wed, 05 Aug 2009 22:18:31 +0300, Shawn McKenzie
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 possibilities that I have thoug
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 li
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 exper
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 Uni
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"" <[EMA
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 f
Instead of the php function, 'time()'. Try 'date()'. Somethine like this
--clip--
--clip--
You can customize the way you want the time format to be displayed. You can
find it at http://www.php.net/manual/en/function.date.php and you'll see the
option for dates and times.
"- -" <[EMAIL PROTEC
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 B
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 colum
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 getlastupda
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 state
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.
>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
";
$i=0;
do{
$i++;
}while($i<=100);
$stop=getmicrotime();
$difference=($stop-$start)/3600;
echo $start."".$stop."".$difference." Hours";
?>
Does this help...
- Lord Loh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
[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
h
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 out
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 thi
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 co
"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
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 lim
===
Darren 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:
Á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 wh
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 c
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
[EMA
<[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 i
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 e
from the manual
this will grab a file too using the socket functions, the
socket_set_timeout()'s first param is expected to be a socket handle.
"Jean-Arthur Silve" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi !
I use the file function for accessing to pag
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
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 Proce
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"
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 variab
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
ay, June 20, 2001 11:52 PM
Subject: RE: [PHP] re: time
> > 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.
> >
> 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.
P
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.
Tha
54 matches
Mail list logo