Is this date stored in mysql by anychance?
[EMAIL PROTECTED] wrote:
>Hi All,
>
>Is there any function in PHP4.X or in Oracle8i to calculate number of
>Business days ( excluding Saturday and Sunday) between two given dates?
>
>Thanks in advance.
>Sridhar.
>
>-Original Message-
>From: qar
Hi All,
Is there any function in PHP4.X or in Oracle8i to calculate number of
Business days ( excluding Saturday and Sunday) between two given dates?
Thanks in advance.
Sridhar.
-Original Message-
From: qartis [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 1:38 PM
To: [EMAIL
Hi there,
Is there any one who could give me an idea regarding the date and time
triggering PHP script. This date and time script whould gives an output if
ever it hit "Jan 1" and print's it's year.
Any idea?
Thanks in advance, and also to all who keeps on helping a newbie like me.
Regards,
hi,
how i make to catch a future date, with this formatting 09/01/2002.???
thanks,
Aurélio Sabino
o:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 2:20 PM
To: Carlos Fernando Scheidecker Antunes
Cc: PHP-GENERAL
Subject: Re: [PHP] Date aritmetic
Not mentioning that you could've taken a look at
http://www.php.net/manual/en/ref.datetime.php yourself, here goes:
$days_diff=(mktime(0,0,0,$mon
-GENERAL
Subject: [PHP] Date aritmetic
Importance: High
Hello all,
I would like to know if anyone could help me with the following issue:
I have 6 variables, two holds a day, others the month and the last ones the
year. They are entered through drop-down-menus where the user selects day,
month and
Well, actually
$days_diff=(mktime(0,0,0,$month2,$day2,$year2)-mktime(0,0,0,$month1,$day1,$year1))/86400;
but you probably got that... :-)
Bogdan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To con
Not mentioning that you could've taken a look at
http://www.php.net/manual/en/ref.datetime.php yourself, here goes:
$days_diff=(mktime(0,0,0,$month2,$day2,$year2)-mktime(0,0,0,$month2,$day2,$year2))/86400;
Bogdan
Carlos Fernando Scheidecker Antunes wrote:
> Hello all,
>
> I would like to know
Hello all,
I would like to know if anyone could help me with the following issue:
I have 6 variables, two holds a day, others the month and the last ones the year. They
are entered through drop-down-menus where the user selects day, month and year for
each date.
I would like to know the diffe
Hi! =)
I'm doing a website that will be using a pay-per-month membership
program. There's a field for 'lastpaid' that holds the date the last
paid (sorry to state the obvious). My questions are these:
1) What would be the best way to format it so PHP can see if it's been
30 days since it was last
you could use the mySQL DATE_FORMAT() directly in your query:
SELECT DATE_FORMAT( mydatefield, '%m/%d/%Y ' ) as d_mydatefield from MyTable
At 11:23 PM 12/12/2001 +0100, you wrote:
>Hi to all,
>
>I'm using this to get date from mySQL database:
>
>..
>$p_datum = $row["mydatefield"];
>$mydate = get
what's your raw data. I mean, what is the value of
$row["mydatafield"];
--- Max <[EMAIL PROTECTED]> wrote:
> Hi to all,
>
> I'm using this to get date from mySQL database:
>
> ...
> $p_datum = $row["mydatefield"];
> $mydate = getdate($p_datum);
> $month = $mydate['month'];
> $mday = $mydate['
Hi to all,
I'm using this to get date from mySQL database:
...
$p_datum = $row["mydatefield"];
$mydate = getdate($p_datum);
$month = $mydate['month'];
$mday = $mydate['mday'];
$year = $mydate['year'];
..but I allways get 1/1/1970.
Can anybody help me?
--
PHP General Mailing List (http://
- Original Message -
From: "Brian V Bonini" <[EMAIL PROTECTED]>
To: "PHP Lists" <[EMAIL PROTECTED]>
Sent: Tuesday, December 11, 2001 3:43 PM
Subject: [PHP] Date
Try instead..
echo "Last Modified: " . date("j F Y H:i", filetime($y
Why is this:
returning this:
Last Modified: December 31, 1969, 7:00 pm
from this:
-rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php
Anyone?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
Here, play with this. dtAuctionStart is a MySQL date field, so substitute
your own connection and var.
Have fun - Miles Thompson
Some messing about with dates
=
";
echo date ("Y-m-d", $dtAuctionStart ), "";
//$strDate = $dtAuctionStart ;
echo "dtAuctionStart : $dt
On Monday, December 10, 2001, at 09:35 PM, phantom wrote:
> What would be an easy what to format a date value into month day year??
> I want to specially display a date stored in mysql in date format
> -MM-DD
>
> The manual says: string date (string format, int [timestamp])
>
> I tried $For
OTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 8:35 PM
Subject: [PHP] Date formatting
> What would be an easy what to format a date value into month day year??
> I want to specially display a date stored in mysql in date format
> -MM-DD
>
> The manual
What would be an easy what to format a date value into month day year??
I want to specially display a date stored in mysql in date format
-MM-DD
The manual says: string date (string format, int [timestamp])
I tried $FormattedDate = date("F y, Y",${StoredDate})
1999-04-15 spit out December 3
-Original Message-
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2001 14:35
To: PHP Lists
Subject: [PHP] Date
Why is this:
returning this:
Last Modified: December 31, 1969, 7:00 pm
from this:
-rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php
Anyone?
-
Why is this:
returning this:
Last Modified: December 31, 1969, 7:00 pm
from this:
-rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php
Anyone?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
Hi,
I am reading a date from an input in format 'DD-MM-' ex. 10-11-2001.
Now I want to add 3 months to the date. I have tested mktime and strftime
etc and no matter what I do I get the year as 1970. (Systemdate works
fine). How would I go about adding 3 months to a date in that format?
Th
Hello,
I'm working on a project planning system and what i want to do is making a
sort of table structure with an overview form today till a month later. All
the projects that are between these dates must be viewed.
Right now i have the following questions:
- How can i determine how much days
te1[0] );
Martin T
-Original Message-
From: py [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date conversion and calculation problem...
Hello,
I have 2 date string like this
$t1 = "2001-11-12 17:30:10";
$t2 = "2001
> I have 2 date string like this
>
> $t1 = "2001-11-12 17:30:10";
> $t2 = "2001-11-12 17:15:32";
>
> I need to substracts the number of seconds from $t2 from $t1
First, convert them to unix time format:
So:
(apologies for stuff that doesn't work, I've coded this in
the email and not teste
Hello,
I have 2 date string like this
$t1 = "2001-11-12 17:30:10";
$t2 = "2001-11-12 17:15:32";
I need to substracts the number of seconds from $t2 from $t1
(because after I have another script thats converts the number of seconds to
minutes, hours or days if necessary)
I tried: (but it does n
Hi Sundog,
Can help you with dates (but no, if you want that kind you'll definitely not be
wanting my advice...)
- Original Message -
> I am trying to determine if todays date ($today) is within a week
> ($startcheck) of a given date ($dob). This is what I have so far.
>
> $todaydate = (
I am trying to determine if todays date ($today) is within a week
($startcheck) of a given date ($dob). This is what I have so far.
$todaydate = (date("Y-d-m"));
$today = strtotime($todaydate);
// $today prior to strtotime = 2001-10-11
$startcheck = strtotime(2001-08-11);
$dob = strtotime(2001-1
Hi,
I'm having a bit of a weird problem with the date() function. I am using
PostgreSQL to store guestbook entries and updating and displaying them with
Apache 1.3x and PHP4 on OpenBSD. The date information is being stored
correctly in PostgreSQL, but I'm using the date() function to format t
For reference:
OS: OpenBSD 2.9
Web Server: Apache1.3.19
PHP Version: 4.0.6
My problem is that date() and all the other time functions return GMT instead
of localtime. system("date") returns the correct localtime. Those functions
used to return localtime since GMT. The problem seems to have s
I have inserted the date into MySQL using now() in the query. However, when
I retrieve the using MySQL_Date_Format in the query the time is always
wrong. on the other hand, if I format the date using Date() in PHP it always
makes the date DEC 31 1969 at 700PM. Please Help
--
PHP General Mailin
Hello guys
I store date in my dbase in folliwing format 2001-08-27 22:24:07, how
can i convert this to timestamp and do manipulation
Thank You very muc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
Thankyou, that works fine.
--
Chip
"Jack Dempsey" <[EMAIL PROTECTED]> on 09/12/2001 12:03:20 AM
Internet mail from:
To: <[EMAIL PROTECTED]>
cc: <[EMAIL PROTECTED]>
Subject: RE: [PHP] date/time of current page
> I'm not sure what you mean, but h
> I'm not sure what you mean, but here is what I have tried -
try this:
jack
--
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 PROTECTED]
"Michael Geier, CDM Systems Admin" <[EMAIL PROTECTED]> on 09/11/2001
11:46:50 PM
Internet mail from:
To: "Jack Dempsey" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
cc:
Subject: RE: [PHP] date/time
"Jack Dempsey" <[EMAIL PROTECTED]> on 09/11/2001 11:42:07 PM
Internet mail from:
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:
Subject: RE: [PHP] date/time of current page
have you tried parsing out the name from $PHP_SELF?
I would think that php wouldn&
document.write('some text ' + document.lastmodified + ' some other text.');
-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 11, 2001 4:42 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] date/time of current p
ember 11, 2001 1:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date/time of current page
I want to put, into a footer include file, the last modified date of the
current
file being viewed. I have the following code that works when I hard code
the
file name -
But of course that won't work as a f
I want to put, into a footer include file, the last modified date of the
current
file being viewed. I have the following code that works when I hard code
the
file name -
But of course that won't work as a footer for a site with over two hundred pages.
What is the parameter for the current page?
From: Paul McGee <[EMAIL PROTECTED]>
Date: Thu, Aug 30, 2001 at 12:45:49PM -0400
Message-ID: <[EMAIL PROTECTED]>
Subject: Re: [PHP] Date formatting in PHP 3.0
> Thanks, I knew it was something stupid!
>
> However, the $dy = date ("D", $row[0]) doesn't work.
hu, Aug 30, 2001 at 12:13:21PM -0400
> Message-ID: <[EMAIL PROTECTED]>
> Subject: [PHP] Date formatting in PHP 3.0
>
> > I'm looping through a MSQL db pulling out the dates where I would like
to
> > display the date and then the day of the week. The problem is that
ev
From: Paul McGee <[EMAIL PROTECTED]>
Date: Thu, Aug 30, 2001 at 12:13:21PM -0400
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Date formatting in PHP 3.0
> I'm looping through a MSQL db pulling out the dates where I would like to
> display the date and then the day of th
I'm looping through a MSQL db pulling out the dates where I would like to
display the date and then the day of the week. The problem is that every
date returns the same day of the week, Wed. I checked the documentation and
it doesn't say anything about the expression only being executed once duri
On Mon, Aug 20, 2001 at 12:12:15PM +0100, Peter Allum wrote:
> I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that
> bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year
> and 11 months ahead of the 1st date and another that is 2 years ahead of the
>
I am using PHP 4, I have a date which I am adding to a MYSQL db, I have that
bit sorted, I am trying to calculate an 2 expiry dates, one that is 1 year
and 11 months ahead of the 1st date and another that is 2 years ahead of the
1st date.
Any Ideas, I have seen lots of scripts for adding days but
On 16-Aug-2001 David Robley wrote:
> On Thu, 16 Aug 2001 00:38, Mike Mike wrote:
>> Hello,
>> I'm pulling a date out of MySQL as 2001-10-18.
>> How do I make it print October 18 in php?
>> Thanks much
>> --Mike
>
> You could use the Mysql date functions to format it for you. If your date
> fi
On Thu, 16 Aug 2001 00:38, Mike Mike wrote:
> Hello,
> I'm pulling a date out of MySQL as 2001-10-18.
> How do I make it print October 18 in php?
> Thanks much
> --Mike
You could use the Mysql date functions to format it for you. If your date
field is called date and is a date type:
SELECT CO
I use
$date = explode("-", $msql_date);
$date = date("d F",mktime(0,0,0,$date[1],$date[2],$date[0]));
At 08:08 AM 8/15/01 -0700, Mike Mike wrote:
>Hello,
>I'm pulling a date out of MySQL as 2001-10-18.
>How do I make it print October 18 in php?
>Thanks much
> --Mike
>
>
- Original Message -
From: "Mike Mike" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 1:08 AM
Subject: [PHP] Date function
> Hello,
> I'm pulling a date out of MySQL as 2001-10-18.
> How do I make it print October
Hello,
I'm pulling a date out of MySQL as 2001-10-18.
How do I make it print October 18 in php?
Thanks much
--Mike
__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
PHP Gene
ks of the year where new
york is 6 hours behing UK, and the rest its only 5.
HTH
- Original Message -
From: "Johnny Nguyen" <[EMAIL PROTECTED]>
To: "Steve Brett" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 4:25 PM
Subject: RE
> Just to throw one more unwelcome cat amongst the pigeons..
>
> Different countries/time zones have summer time, I think almost all
> countries do, but the actual days when they switch vary from country (yes
I
> know, bloody nusiance isn't it?)
>
> I know as an example of this theres about three
tt [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 8:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php date bug ?
as far as i know adding 1 day to the day value of the timestamp will
increment the month as well.
adding i day to july 31st will give august 1st.
if you need it i'll s
ement.
regards,
Johnny Nguyen
-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 03, 2001 7:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php date bug ?
hi,
i've got a calendar and i produce a month sort of outlook / filofax view
that shows the user's app
Do you mean something like:
$date = date("Y-m-d");
echo $date;
Mick
On Sat, 28 Jul 2001, colin wrote:
> can anyone give me a work around for a PHP date function when used in
> conjunction with a PHP include.
> The code inside the include is printed but I
can anyone give me a work around for a PHP date function when used in
conjunction with a PHP include.
The code inside the include is printed but I do not know how to echo the
date as the document has already been parsed once.
Any help would be appreciated. Please reply to [EMAIL PROTECTED]
many
Okay, I need help with this one:
I have a table with a column in the MySQL DATETIME format. (2001-07-24
13:02:02)
I need a MySQL query that will select all the entries in it made within the
last hour.
I tried this, but it is not working correctly, what am I doing wrong?
SELECT *
28/2003" is 28 Feb 2003 month is 2 End of month is 29
test date "2/29/2003" is 01 Mar 2003 month is 3 End of month is 31
test date "2/28/2004" is 28 Feb 2004 month is 2 End of month is 29
test date "2/29/2004" is 29 Feb 2004 month is 2 End of month is 29
last day
t
Better still, use the date("t"); to find out how many days are in the given
month. This part of the date function is a blessing, given the varying days
in months, and the fact that we've a leap year every four years.
James
"Daniel Rezny" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">ne
cho "last day";
or something else :)
> - Original Message -
> From: Yamin Prabudy <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 23, 2001 5:27 PM
> Subject: [PHP] date HELP !
>
>> hi,
>> how do i chec
Hello Yamin,
Monday, July 23, 2001, 9:27:46 AM, you wrote:
YP> hi,
YP> how do i check that the current date is the end of month
YP> Thanks in Advance
If you want to check how long is current month and use this value
later you can use this:
$month=("m"); //can be like this depend on if you s
$todaydate = date("m");
$tomorrowdate = date("m",time() + 86400);
if($todaydate != $tomorrowdate){
echo "Tomorrow is a new month";
}
- Original Message -
From: Yamin Prabudy <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July
hi,
how do i check that the current date is the end of month
Thanks in Advance
--
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 PROTECTED]
Hi,
how do i check that the current date is the end of month ?
thanks in advance
--
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 PROTECTED]
What is this "On Mon, 4 Jan 1999, Duy B wrote:"
On Mon, 4 Jan 1999, Duy B wrote:
> Hi all,
> I have a view containing a char value. I use select to_date(thoigian,'yy-mm-dd
>hh24:mi:ss') from this view. But i can't see the time, it's only appear as
>"DD-MON-YY". Anybody could show me how to se
Hi all,
I have a view containing a char value. I use select to_date(thoigian,'yy-mm-dd
hh24:mi:ss') from this view. But i can't see the time, it's only appear as
"DD-MON-YY". Anybody could show me how to see the time.
Thanks you in advance.
Best regards,
BaDu
On 11-Jul-01 scott [gts] wrote:
> Has anybody heard if this will affect PHP in any way?
>
> Copied from the "Unix Guru mailing list":
>
> -=-=-=-=-=-=-=-=-=-=-=-
> The unix time() value becomes
> 10 digits for the first time on
> Sun Sep 9 01:46:40 2001
>
> For the first time in modern
>
Has anybody heard if this will affect PHP in any way?
Copied from the "Unix Guru mailing list":
-=-=-=-=-=-=-=-=-=-=-=-
The unix time() value becomes
10 digits for the first time on
Sun Sep 9 01:46:40 2001
For the first time in modern
computer history, the timestamp
will be something besid
On Tue, 26 Jun 2001 00:28, Tyler Longren wrote:
> Hello,
>
> I have something like this:
> $Month = "6";
> $Year = "2001";
> $Date = "1";
>
> Is there any relatively simple way to get the day out of that? For
> example, the day for 6-1-2001 would be Friday.
>
> Thanks,
> Tyler
If that info comes
date('l', mktime(0,0,0, $Month, $Day, $Year));
- Original Message -
From: "Tyler Longren" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: 2001. június 25. 16:58
Subject: [PHP] date -> day
> Hello,
>
> I hav
ECTED]>
Sent: Monday, June 25, 2001 10:58 AM
Subject: [PHP] date -> day
> Hello,
>
> I have something like this:
> $Month = "6";
> $Year = "2001";
> $Date = "1";
>
> Is there any relatively simple way to get the day out of that? For
ex
mktime can be pretty useful :
$year = 2001;
$month = 6;
$day = 1;
print date('l',mktime(0,0,0,$month,$day,$year));
as it creates a unix timestamp, and date() appreciates that.
Regards,
Philip
On Mon, 25 Jun 2001, Tyler Longren wrote:
> Hello,
>
> I have something like this:
>
Hello,
I have something like this:
$Month = "6";
$Year = "2001";
$Date = "1";
Is there any relatively simple way to get the day out of that? For example,
the day for 6-1-2001 would be Friday.
Thanks,
Tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
=0;
> $year = date("Y");
> while($x < 20)
> {
> $year = $year+1;
> print($year . "\n");
> $x++;
> }
> ?>
>
> Try that.
>
> Tyler
>
> > -Original Message-
> > From: Jason Caldwell [mailto:[EMAIL PROTECT
Hi Jason,
You might want to put the '+$x' outside the date().
$year = date("Y") + $x;
Greetings,
Michael.
> I'm trying to figure out how to add to the year:
>
> for($x=0; $x<20; $x++)
> {
> $year = date("Y" + $x);
> print($year . "\n");
> }
>
> I've tried several variations on the a
On Wed, 23 May 2001 13:49, Jason Caldwell wrote:
> I'm trying to figure out how to add to the year:
>
> for($x=0; $x<20; $x++)
> {
> $year = date("Y" + $x);
> print($year . "\n");
> }
>
> I've tried several variations on the above and cannot get the year to
> come out.
>
> Any suggestions?
Try that.
Tyler
> -Original Message-
> From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 11:20 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Date (Year) .. adding..
>
>
> I'm trying to figure out how to add to the
I'm trying to figure out how to add to the year:
for($x=0; $x<20; $x++)
{
$year = date("Y" + $x);
print($year . "\n");
}
I've tried several variations on the above and cannot get the year to come
out.
Any suggestions?
Thanks
Jason
--
PHP General Mailing List (http://www.php.net/)
T
Hi,
Does anyone implement Date and Time Functions for PHP like MySQL?
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
I know there is already have functions for PHP, however it cannot
handle year expect it was between 1902 and 2037.
http://www.php.net/manual/en/ref.datetime.php
Regar
On 08-May-01 Jack Sasportas wrote:
>
> The Goal is to have the Time stamp looking like 12:24 (military time OK)
>
> and the date 05-08-2001 or even 05-08-01.
>
> The MySQL db looks like so:
> date -00-00
> time 00:00:00
>
> I don't seem to really be able to vary the DB form
2001 17:46
To: php
Subject: Re: [PHP] Date & Time Formatting ??
Here is what I am trying to do, but I get the wrong date:
$t_data_array[1]=date("m/d/y",mysql_result($db_result,$db_record,'date'));
Then I simply print the value in the arraythis date instead of 05/08/0
e info (there are loads of examples in
> the user notes).
>
> HTH
> Jon
>
> -Original Message-
> From: Jack Sasportas [mailto:[EMAIL PROTECTED]]
> Sent: 08 May 2001 17:28
> To: php
> Subject: [PHP] Date & Time Formatting ??
>
> OK I have read many examp
are loads of examples in
the user notes).
HTH
Jon
-Original Message-
From: Jack Sasportas [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 17:28
To: php
Subject: [PHP] Date & Time Formatting ??
OK I have read many examples, old posts etc, but I am looking for a
detailed explanation as to
OK I have read many examples, old posts etc, but I am looking for a
detailed explanation as to how to do this.
First is when I write to a mysql database using the now() function, the
time stamp looks like so when I display the time back to the browser.
204:24:06 ( This should have been 12:24pm
Gary,
Yes. Check the manual for mktime(); and getdate();
http://www.php.net/quickref.php
James
> Is there a way to do calculations with dates? Preferably ignoring
weekends.
>
> Thanks, Gary
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>
Is there a way to do calculations with dates? Preferably ignoring weekends.
Thanks, Gary
--
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 PROTECTED]
Jon,
Try this ... I know the code could be trimmed down, but I wrote it this way
for ease of reading.
";
echo "$month/$day/$year";
echo "\n";
$startperiod = $startperiod + 86400;
}
?>
Basically just uses mktime() and getdate()
The 86400 is the number of seconds in the day, and the opti
uot; <[EMAIL PROTECTED]>
> Cc: "PHP List" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 02, 2001 3:06 AM
> Subject: Re: [PHP] date list
>
> > Jon,
> >
> > Just had to do almost exactly this - here's one solution. The tricky bit
> was
> > g
ahem
$daysinmonth = date('t');
- Original Message -
From: "Chris Fry" <[EMAIL PROTECTED]>
To: "Jon Rosenberg" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 3:06 AM
Subject: Re: [PHP] date lis
Jon,
Just had to do almost exactly this - here's one solution. The tricky bit was
getting the number of days in the month - you have to look at next month!
This generates a list for 12 months starting with the current month and outputs
display stuff as well. In our scenario this is passed to a s
I need to make a select list for a web page in the following format:
01/01/01-01/07/01
01/08/01-01/14/01
01/15/01-01/21/01
etc
etc
till the end of 2002 and further in the future eventually
I'd like to make PHP generate this for me so I don't have to handcode it for
each year in the future. I've
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 11:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date add more 7 days, help needed.
Hi all
I have variable that store date like this
Hi all
I have variable that store date like this :
$First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb 1,2001) .
I wanna do the loop 8 times that will add 7 more days to the begining date and keep
adding it for 8 times. The looping thing is okay but I am not sure if I simply p
On Tue, 24 Apr 2001 23:44, Jacky wrote:
> Hi all
> I have variable that store date like this :
> $First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb
> 1,2001) . I wanna do the loop 8 times that will add 7 more days to the
> begining date and keep adding it for 8 times. The loopi
Hi all
I have variable that store date like this :
$First = "$year" . "$month" . "$date"; ( which return 20010201 for Feb 1,2001) .
I wanna do the loop 8 times that will add 7 more days to the begining date and keep
adding it for 8 times. The looping thing is okay but I am not sure if I simply p
>Is it possible to do some arithmetic with time/date values in PHP?
> for example, to calculate:
>today + 1050 days.
>today - 7 days.
>etc.
> I mean, does PHP have functions to perform these operations?
$oneDay = 86400; // number of seconds in a day
Hello,
Is it possible to do some arithmetic with time/date values in PHP?
for example, to calculate:
today + 1050 days.
today - 7 days.
etc.
I mean, does PHP have functions to perform these operations?
Thanks,
Erich Reimberg.
PS. I'm new to PHP, and I didn't find anything like t
;
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: April 9, 2001 12:00 AM
Subject: [PHP] date/time in wrong zone
>I'm using php 4.0.4pl1on a FreeBSD system.
>When I use a php date/time function, it reports the time in GMT, however, I
>have the date on my FreeBSD system set to EDT.
I'm using php 4.0.4pl1on a FreeBSD system.
When I use a php date/time function, it reports the time in GMT, however, I
have the date on my FreeBSD system set to EDT.
I can't figure out what the problem is here. The only thing I can think of
is that when I compiled php, my system timezo
You need a UNIX timestamp for the second argument in date() - thus you need
to first convert your $even into a timestamp (number of seconds past 1970).
That would work ...
--Joe
On Fri, Apr 06, 2001 at 01:13:59PM +0100, Matt Davis wrote:
> Hi I am trying to format a date extracted from my DB.
901 - 1000 of 1067 matches
Mail list logo