I am interested in finding out what standards/formulas other PHP
programmers/departments out there are using to accurately provide time
estimates on modules to their PM's/Clients.
Any suggested reading books or sites?
Do time estimate theories in other langauges apply to web and php
programming
At 11:10 AM 2/1/2006, Mark Steudel wrote:
I am interested in finding out what standards/formulas other PHP
programmers/departments out there are using to accurately provide time
estimates on modules to their PM's/Clients.
Any suggested reading books or sites?
Highly recommended:
Web
Hi!
I some problem:
I have visitor's IP, country and city. I need to define his GMT offset.
Have you such database GMT's offsets.
I found many such list in Google but many countries has different GMT's
(Russia - 7!).
Any idea?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi,
I have a row in myslq database called time and is just a simple timestamp
column
When I echo it out
echo $row['time'];
echo $row['content'];
I get the following
2005-08-30 13:50.05 this is the text content
Now I am not worried about the time but I would like to know how to
(i) sort
[snip]
Now I am not worried about the time but I would like to know how to
(i) sort the returned rows in order (latest first)
(ii) be able to extract the individual parts of the date and display
them in
UK format
30.08.2005 this is the text from 30th of August
27.08.2005 this is the text from
Jay Blanchard wrote:
[snip]
Now I am not worried about the time but I would like to know how to
(i) sort the returned rows in order (latest first)
add ORDER BY `yourdatefield` DESC to your SQL
(ii) be able to extract the individual parts of the date and display
them in
UK format
Have no
Hi,
I have the date when users registered stored in the database using time()
function format.
I have to search for users that are registered this week, this month and this
year. How can i do that? I mean how can i found the beginning of this week? Or
the beginning of this month?
Thanks in
On 29 Jul 2005, at 08:37, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have the date when users registered stored in the database using
time() function format.
Hm. I hope this means you're storing it as a TimeStamp format, or
better, DateTime, and not as a simple integer field.
I have
for PHP time zone but...
What am I missing?
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Contributed notes, and none seemed to answer it.
I suppose I could Google for PHP time zone but...
What am I missing?
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard,
Take
I'd like to generate a list of time zones (EST, CDT, whatever) for a popup.
Seems like it should be easy...
This is so the Sales guy can just plug in the time and zone of who he's
gotta call back, and I stuff that in the database, and he gets a morning
report of who to call.
?php
for ($offset
I want to send email every 24. What time format you recomend to use?
In what format the data should be store in mysql?
TH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2004-10-13 at 10:31 -0400, Jerry Swanson wrote:
I want to send email every 24. What time format you recomend to use?
In what format the data should be store in mysql?
TH
every 24? hours? minutes?
Are you going to be running a script all the time to do this?
You might want to
On Wed, 13 Oct 2004 10:31:54 -0400, Jerry Swanson [EMAIL PROTECTED] wrote:
I want to send email every 24. What time format you recomend to use?
In what format the data should be store in mysql?
Your question is more appropriate for php-db or a MySQL list serv.
I'm not sure why you need to
Darn missed it. Looking into the docs I am using code
somthing like this:
$start = microtime();
$result = mysql_query ( $query, $mysql );
$end = microtime();
$diff = microtime_diff ($start, $end);
function microtimdiff() is given by:
function
Karam Chand wrote:
Darn missed it. Looking into the docs I am using code
somthing like this:
If you are really keen about chaning +1 to ++ and double quotes to
single quotes in the hope of shaving off a few milliseconds in execution
time you might want to try something like xdebug.
--
Hello,
In Win32 API to profile a job we use the following
method:
timetaken = GetTickCount();
/* do some job */
timetaken = GetTickCount() - timetaken;
In this way timetaken returns you the time taken by
the job to complete?
How can I get it in PHP. I want the exact figure in
ms? I used
Karam Chand wrote:
In Win32 API to profile a job we use the following
method:
timetaken = GetTickCount();
/* do some job */
timetaken = GetTickCount() - timetaken;
In this way timetaken returns you the time taken by
the job to complete?
How can I get it in PHP. I want the exact figure in
ms? I
[EMAIL PROTECTED] (Tom Rogers) wrote in
news:[EMAIL PROTECTED]:
I have this in an auto_prepend file or you can put it before using any
of the date() functions
putenv('TZ=Australia/Brisbane');
But, but, that'll put the clock back 20 years and then add 30 minutes to
Central Standard time
how can get a specific time zone, not the server time.
example:
if the server time is 13:15:46 I need to output that time +5hours
so 18:15:46
because the hosting server time is not my local or other area time..
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Best:
use gmmktime() and add the required offset by:
$time_here = gmmktime() + ( $offset * 60 * 60 ) ;
how can get a specific time zone, not the server time.
example:
if the server time is 13:15:46 I need to output that time +5hours
so 18:15:46
because the hosting server time is not my
Hi,
Tuesday, April 13, 2004, 9:29:19 PM, you wrote:
n how can get a specific time zone, not the server time.
n example:
n if the server time is 13:15:46 I need to output that time +5hours
n so 18:15:46
n because the hosting server time is not my local or other area time..
n thanks
I have
Hi,
I have a TIME field type in mysql database I want to do a select and add all the times
together to return a total time, can I do this using the select statement?
cheers
matt
Matthew Oatham wrote:
Hi,
I have a TIME field type in mysql database I want to do a select and add all the times together to return a total time, can I do this using the select statement?
cheers
This is a PHP list, not MySQL.
http://www.mysql.com/doc/en/DATETIME.html
--
PHP General Mailing
select sum(mytime) from table...
not sure if it will work but try it!
angelo
-Original Message-
From: Matthew Oatham [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 1:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] time function
Hi,
I have a TIME field type in mysql database I
I am wondering if there is a time delay function, one that will cause
the program to be inactive for a number of seconds (something like
delay(10) ). I am doing this because I am setting up a mass mailing
program (this is not spam), and I don't want to be targeted as spam.
Best Regards,
Hello Scott,
Wednesday, March 10, 2004, 4:12:29 AM, you wrote:
ST I am wondering if there is a time delay function, one that will cause
ST the program to be inactive for a number of seconds (something like
ST delay(10) ). I am doing this because I am setting up a mass mailing
ST program (this
Take a look at sleep()
http://www.php.net/sleep
It delays execution by a user specified number of seconds.
Jason
-Original Message-
From: Scott Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 9:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP] time delay function?
I am
Hello,
a have this problem. I am reading some data from another server via
http-conection for which I have used fsock_open. But sometimes, it is
possible, that reading is longer, than for example 5 seconds, and I want to
stop this reading a return false...
I found function set_time_limit,
Hi there,
I have a RH Linux Web server running apache and PHP.
I recently changed the system clock, the time zone and hardware clock.
The time and date are showing up correctly in Webmin and in the O/S itself.
But when I call a php function to display the date and time it shows it as
one hour
Fernando Melo wrote:
Hi there,
I have a RH Linux Web server running apache and PHP.
I recently changed the system clock, the time zone and hardware clock.
The time and date are showing up correctly in Webmin and in
the O/S itself.
But when I call a php function to display the date and
Hi there,
I have a RH Linux Web server running apache and PHP.
I recently changed the system clock, the time zone and hardware clock. The
time and date are showing up correctly in Webmin and in the O/S itself. But
when I call a php function to display the date and time it shows it as one
I have done all those checks. Thanks for trying though.
Anyone else have any suggestions please? :(
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 25 November 2003 16:06
To: [EMAIL PROTECTED]
Subject: AW: [PHP] Time
Hi Fernando,
first try date and date -u
]
Sent: 25 November 2003 13:13
To: 'Fernando Melo'; [EMAIL PROTECTED]
Subject: RE: [PHP] Time
Fernando Melo wrote:
Hi there,
I have a RH Linux Web server running apache and PHP.
I recently changed the system clock, the time zone and hardware clock.
The time and date are showing up correctly
Is there anyway to set a time out on this command:
mysql_connect($host, $UN, $PW);
so that if it can´t connect after a certain amount of time, it returns an
error and the program continues?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Diana Castillo wrote:
Is there anyway to set a time out on this command:
mysql_connect($host, $UN, $PW);
so that if it can´t connect after a certain amount of time, it returns an
error and the program continues?
ini_set('mysql.connect_timeout', ... );
--
PHP General Mailing List
Hi All,
Sorry if this has been asked a 1000 times and if its easy to find in the
php manual but i cant seam to solve this.
How do i convert a timestamp in to a normal readable time date ie
2003155023
into
11th November 2003 @ 15:50:23
Many thanks, thought id ask someone is bound to
--- Erin [EMAIL PROTECTED] wrote:
How do i convert a timestamp in to a normal readable time date ie
2003155023
into
11th November 2003 @ 15:50:23
That's not a timestamp, first of all. It looks to me like you just need to
use substr() to parse out the elements however you want. You
.
http://www.php.net/manual/en/function.date.php
Good luck,
Warren Vail
-Original Message-
From: Erin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 4:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Time problem
Hi All,
Sorry if this has been asked a 1000 times and if its
Erin wrote:
Hi All,
Sorry if this has been asked a 1000 times and if its easy to find in the
php manual but i cant seam to solve this.
How do i convert a timestamp in to a normal readable time date ie
2003155023
into
11th November 2003 @ 15:50:23
IFF the timestamp is coming from MySQL
[snip]
does anybody know how php handles daylight saving issues ?
[/snip]
I am pretty sure that PHP does not 'handle' daylight savings issues at
all, but relies on the server settings for its time base.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
hi !
i'm working in a calendar software, web based with php and a windows client.
i can write appointments to my mysql database with the windows client
independent
from daylight savings. it always shows the appointments at the right time.
if i
create appointments with my php web frontend e.g.
1st
Hello again
Here's my problem: In my time calculations, I'm taking the time that
the user clocked out, minus the time they clocked in. I'm using the
time_to_sec function in mysql. I work very odd hours. If I clock in
say at 10pm, then clock out at 1am, the clock is majorly messed up. I
think
Jake McHenry wrote:
Here's my problem: In my time calculations, I'm taking the time that
the user clocked out, minus the time they clocked in. I'm using the
time_to_sec function in mysql. I work very odd hours. If I clock in
say at 10pm, then clock out at 1am, the clock is majorly messed up. I
The battery on my server keeps on dieing, so the clock is not keeping time
correctly. I was wondering is there any way to query some type of global
time source in php?
Thanks,
Dale
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not directly as far as I know. Try using chronyd or similar (google will point
you in the right direction). This works well with one of my machines that has
a wayward clock and chronyd is happy to work with networks not permanently
connected to the internet.
On Tuesday 02 Sep 2003 1:11 am,
* Thus wrote Dale Hersh ([EMAIL PROTECTED]):
The battery on my server keeps on dieing, so the clock is not keeping time
correctly. I was wondering is there any way to query some type of global
time source in php?
Totally unrealated to php but search for:
Network Time Protocol (NTP)
That
On Mon, 30 Jun 2003 07:31:59 -0500, Wendell Brown wrote:
On Sun, 29 Jun 2003 15:19:56 -0400, Larry R. Sieting wrote:
I want to output the difference as a difference expressed in time
format: 10:05:23 - 09:45:32 = 00:39:51
Try this:
?PHP
$tot_time = ($data['end_time'] -
Hello,
I am trying to get a time calculation using:
$tot_time = ($data['end_time'] - $data['start_time']);
The end_time start_time are stored in a db as column type of time.
I want to output the difference as a difference expressed in time
format: 10:05:23 - 09:45:32 = 00:39:51
Do
On Monday 30 June 2003 03:19, Larry R. Sieting wrote:
I am trying to get a time calculation using:
$tot_time = ($data['end_time'] - $data['start_time']);
The end_time start_time are stored in a db as column type of time.
I want to output the difference as a difference expressed in
$mydate = 20030328231154;
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
Whats wrong
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$mydate = 20030328231154;
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
Whats wrong
$mydate should be a unix style timestamp not a MMDDHHMMSS type
date/time format...
Check the functions time() and mktime() to help you generate unix
timestamps.
HTH
Rich
--
?php
$mydate = date(20030328231154);
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
?
On 28/3/03 11:44 am, Philip J. Newman [EMAIL PROTECTED] wrote:
$mydate = 20030328231154;
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
Whats wrong
--
Is there an easy way to display the epoch time given by time() in a human
readable format? Basically, if I do $time = time(); and the insert that
data into my mysql database and then pull that information out again how
do I make it look like 2003-03-13 or a variant of that?
TIA
--
PHP General
Is there an easy way to display the epoch time given by time() in a
human
readable format? Basically, if I do $time = time(); and the insert that
data into my mysql database and then pull that information out again
how
do I make it look like 2003-03-13 or a variant of that?
If you are pulling a
On Thu, 13 Mar 2003 12:07:33 -0500
Tom Ray [EMAIL PROTECTED] wrote:
Is there an easy way to display the epoch time given by time() in a
human readable format? Basically, if I do $time = time(); and the
insert that data into my mysql database and then pull that information
out again how do I
At 18:07 13.03.2003, Tom Ray said:
[snip]
Is there an easy way to display the epoch time given by time() in a human
readable format? Basically, if I do $time = time(); and the insert that
data into my mysql database and then pull that information out again
Hi,
Does anyone know if there is a way for me to produce a function in PHP to pause the
processing of the script for 3 seconds for example without eating up the CPU
bandwidth. I could do with quite accurate control. Is there a better way that doing it
like this:
?php
function
On Saturday 01 February 2003 21:27, OjMyStEr wrote:
Hi,
Does anyone know if there is a way for me to produce a function in PHP to
pause the processing of the script for 3 seconds for example without eating
up the CPU bandwidth. I could do with quite accurate control. Is there a
better way
does anyone have the code to where i can have the time
printed on my home page like for example
Monday, January 19, 2003
also I want to have it state when the users login in
it says
welcome back, (name)
any advise would be fantastic?
Thanks Karl
Please post in raw text, not HTML.
?php echo date('d m y'); ?
look in the manual to decide what format you need to replace 'd m y' with:
http://php.net/date
The welcome back bit all depends on cookies, sessions, how your login
scripts work, etc etc.
Justin
on 20/01/03 12:46 PM, Karl James
does anyone have the code to where i can have the time
printed on my home page like for example
Monday, January 19, 2003
The PHP Manual has this code, under the date() function
(www.php.net/date).
echo date (l, F j, Y);
also I want to have it state when the users login in
it says
welcome
Hi Karl
First up, would you mind posting your messages in plain text instead of
html format? It's just a courtesy to the rest of us.
does anyone have the code to where i can have the time
printed on my home page like for example
Monday, January 19, 2003
Sure, check out the date()
hey guys could someone help me
I have created a user login register system in flash with PHP and Mysql.
Everthing Now works fine aprt from the time stamp of when the user
registered.
Code ---
// Get current date time
$time = time();
// Connects to the Database.
What sort of mysql field type did you use for dateAdded ?
You need UNIX_TIMESTAMP (or sth like that) for unix timestamp format.
- [ Paul Ferrie ] - wrote:
hey guys could someone help me
I have created a user login register system in flash with PHP and Mysql.
Everthing Now works fine aprt from
nope it still comes up with all the zero's
:(
Stephan Seidt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What sort of mysql field type did you use for dateAdded ?
You need UNIX_TIMESTAMP (or sth like that) for unix timestamp format.
- [ Paul Ferrie ] -
On Tuesday 07 January 2003 00:19, - \[ Paul Ferrie \] - wrote:
hey guys could someone help me
I have created a user login register system in flash with PHP and Mysql.
Everthing Now works fine aprt from the time stamp of when the user
registered.
Code ---
//
So Jason what your saying is this
$query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES
(NULL, '$name', '$pass', '$email', '$time');
Should be
$query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES
(NULL, '$name', '$pass', '$email', NOW());
??
cheers
Jason
yep i guess that, so NOW() is a mysql function.
- [ Paul Ferrie ] - wrote:
So Jason what your saying is this
$query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES
(NULL, '$name', '$pass', '$email', '$time');
Should be
$query = INSERT INTO contacts (id, name, pass, email,
On Tuesday 07 January 2003 00:49, - \[ Paul Ferrie \] - wrote:
So Jason what your saying is this
$query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES
(NULL, '$name', '$pass', '$email', '$time');
Should be
$query = INSERT INTO contacts (id, name, pass, email, dateAdded)
So
Is NOW() a mysql function?
Stephan Seidt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
yep i guess that, so NOW() is a mysql function.
- [ Paul Ferrie ] - wrote:
So Jason what your saying is this
$query = INSERT INTO contacts (id, name,
- [ Paul Ferrie ] - [EMAIL PROTECTED] wrote:
So
Is NOW() a mysql function?
Well, you can check for yourself ;)
It should be somewhere around here:
http://www.mysql.com/doc/en/Date_and_time_functions.html
- E
...[snip]...
__
Well i am still getting all the zero's
: ( : (
- Edwin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
- [ Paul Ferrie ] - [EMAIL PROTECTED] wrote:
So
Is NOW() a mysql function?
Well, you can check for yourself ;)
It should be somewhere
show us your database table structure (the whole thing). the NOW() will always work
with a date
or timestamp field
- Original Message -
From: - [ Paul Ferrie ] - [EMAIL PROTECTED]
To:
Sent: Monday, January 06, 2003 11:28 AM
Subject: Re: [PHP] time stamp screwing up
Well i am still
A MySQL timestamp is different to a MySQL timestamp.
$time = time(); will produce a unix timestamp
what you want is
$time = date('Y-m-d');
to give a value in the format -MM-DD
I think you can also use NOW():
$query = INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES
(NULL,
I'm using a simple php script called upload.php, here's the source:
?php
move_uploaded_file($userfile, /my/dir);
?
But I keep getting an error message:
Fatal error: Maximum execution time of 20 seconds exceeded in
D:\dominios\E\escolas-es\spe\upload.php on line 3
Then, I've tried to
I'm using a single php script to send files named upload.php,
here is the source code:
?php
set_time_limit(500);
copy($userfile, log\\$userfile_name);
echo htmlheadtitleUploading file.../titlemeta
http-equiv=\refresh\ content=\0;
url=http://test.com/file_sent.html\;/headbodycenterfont
(I am new here, so excuse my recycled questions. Is there an archive?)
What's a primo date/time display script that gets server time and adjusts to
the client time zone automatically? Most I've seen have hard-coded GMT
offsets, which I don't want.
Thanks
Rick
--
PHP General Mailing List
Hello,
I was wondering if anyone has a good example of a way to do this. Kinda
lame, but like if the time is between 8am and 12pm, say good morning,
between 12pm and 6pm, say good afternoon, and so on.
I know this is probably pretty trivial, but I just wanted to see what
ideas where out there.
, October 03, 2002 3:43 PM
Subject: [PHP] time of day
Hello,
I was wondering if anyone has a good example of a way to do this. Kinda
lame, but like if the time is between 8am and 12pm, say good morning,
between 12pm and 6pm, say good afternoon, and so on.
I know this is probably pretty trivial
On Thu, 3 Oct 2002 14:43:37 -0700 (PDT), you wrote:
Hello,
I was wondering if anyone has a good example of a way to do this. Kinda
lame, but like if the time is between 8am and 12pm, say good morning,
between 12pm and 6pm, say good afternoon, and so on.
I know this is probably pretty trivial,
select time_to_sec('00:12:30) ??
From: adi [EMAIL PROTECTED]
Date: 2002/09/18 Wed PM 04:54:31 CST
To: PHP-General [EMAIL PROTECTED]
Subject: [PHP] time to seconds
Hi, I have a table table1, with a column Duration time type(ex 00:12:30)
I want to make in PHP a sql selection
Hello,
I am trying to figure out why Squirrel Mail is giving the wrong time. I
did a basic script ? echo date('h:I'); ? and the time is off in that
script too. I have checked the server time and the server hardware
clock. They are both on. Does anyone know a reason that the php time
would
Hi Brandon,
I did a basic script ? echo date('h:I'); ? and the
time is off in that script [...] I have checked the
server time and the server hardware clock.
Well, date(h:I) means display the hours (in 12-hour format), followed by
a colon, followed by a 1 or a 0 depending on whether
Hi, I have a table table1, with a column Duration time type(ex 00:12:30)
I want to make in PHP a sql selection:
SELECT * from table1 WHERE condition, and after that, to make sum of values
of column Duration and display it.
Any Help?
How to transform time in seconds, with php functions?
tx
:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 9:55 AM
To: PHP-General
Subject: [PHP] time to seconds
Hi, I have a table table1, with a column Duration time type(ex
00:12:30)
I want to make in PHP a sql selection:
SELECT * from table1 WHERE condition, and after that, to make sum of
values
Hi,
I have a form that I am using to update a mysql table but I can get
timestamp to update. How can I pass that information to pass on. I have
READ all books and feel I have correct systax but it just not working...
input type=text name=lastupdate value=? echo date('D M d, Y H:i:s',
time());
MySQL syntax is MMDDHHMMSS or -MM-DD HH:MM:SS
---John Holmes...
- Original Message -
From: Chuck Payne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 18, 2002 11:25 AM
Subject: [PHP] Time Stamp
Hi,
I have a form that I am using to update a mysql table
Hello all!
I use time() to keep UNIX seconds from 1970 to a timestamp(14) MySQL field.
But when I read it (Dt_last) it is TO big compearing with today=time() in
a php script that is only some seconds later.
today : 1032350421 Dt_last: 20001101165838
What can I do?
Thanks!
Makis
Makis
--
Change it to an INT or a VARCHAR datatype, the mysql timestamp field
uses MySQL's date/time formmating. If you decide to let MySQL use it's
own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix
timestamp from that date field.
Adam Voigt
[EMAIL PROTECTED]
On Wed, 2002-09-18 at
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
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
ow3
--
PHP
How do I compare time in php?
Eg. If I have a mysql time field I retrieve stored in $result[0][0] how do
I
say :
if (($result[0][0] $result[0][0] plus ten minutes) ($result[0][0]
'00:00:00')){
MySQL and PHP timestamps are in different formats. MySQL uses MMDDHHMMSS
and PHP uses a
Hey there ppl..
One dam thing i've been trying to figure out for about 2 weeks now it how
the hell to calculate time.
i have variables $Start, $End each with a timestamp 2 hours apart
(2002070714, 2002070716) respectively
How do i calculate those to timestamps to get the answer
]
To: [EMAIL PROTECTED]
Sent: Monday, July 08, 2002 4:02 PM
Subject: [PHP] Time to Calculate Time
Hey there ppl..
One dam thing i've been trying to figure out for about 2 weeks now it how
the hell to calculate time.
i have variables $Start, $End each with a timestamp 2 hours apart
(2002070714
You just knew there was a regexp version on the way, didn't you :)
Danny.
?php
function unixTime($time)
{
$time=preg_replace('/(.{4})(.{2})(.{2})(.{2})(.{2})(.{2})/','\\1/\\2/\\3
\\4:\\5:\\6',$time);
return strtotime($time);
}
$time1='2002070714';
$time2='2002070716';
That looks great.
But why do you have to carage the line after 3 in the function ?
Danny Shepherd [EMAIL PROTECTED] wrote in message
022001c22696$087e4cc0$0200a8c0@DANNYS">news:022001c22696$087e4cc0$0200a8c0@DANNYS...
You just knew there was a regexp version on the way, didn't you :)
Danny.
Never mind that just needs a space
Thanx for all the help...
have a surf to http://forum.ywait.co.za/ register and then i'll make you a
MOD for the php scripting forum board.
for the future.
if you want
Cheerz
Danny Shepherd [EMAIL PROTECTED] wrote in message
: [PHP] Time Delay using phpscript
Hello,
Can anyone please clear my doubt
I need to display some strings one by one after some specific time..In
javascript we can use setTimeout() function.Is there any function like
this in phpscript ???..
Thanks Regards
Uma
--
PHP General Mailing
Take a look at this page, it uses flush to stagger the results as php
processes it. pretty cool
http://www.massassi.com/bTemplate/benchmarks/benchmark_var_assign.php?i=50
I'd be interested to hear from other people if that works in other browsers.
It had a nice effect when I looked at it in
Hello,
Can anyone please clear my doubt
I need to display some strings one by one after some specific time..In
javascript we can use setTimeout() function.Is there any function like
this in phpscript ???..
Thanks Regards
Uma
--
PHP General Mailing List (http://www.php.net/)
To
101 - 200 of 272 matches
Mail list logo