Re: [PHP] date frustrations

This is a discussion on Re: [PHP] date frustrations within the PHP General forums, part of the PHP Programming Forums category; On Wednesday 09 July 2003 01:51, Shena Delian O'Brien wrote: [snip] > Well I gradually figured out that ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2003
Jason Wong
 
Posts: n/a
Default Re: [PHP] date frustrations

On Wednesday 09 July 2003 01:51, Shena Delian O'Brien wrote:

[snip]

> Well I gradually figured out that the date format output by filemtime()
> was not an acceptable natural language date format. filemtime() was
> fetching dates with a dash - ex. 07-08-2003. strtotime() was making
> incorrect timestamps because it doesn't read dates with dashes formatted
> that way.


What version of PHP are you using? And what exactly is the code that you're
using?

filemtime() returns a _unix timestamp_ and will asort() as is.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A woman without a man is like a fish without a bicycle.
-- Gloria Steinem
*/

Reply With Quote
  #2 (permalink)  
Old 07-08-2003
Shena Delian O'Brien
 
Posts: n/a
Default Re: [PHP] date frustrations

Ahh, you're right! I had a rogue:

$date = date("m-d-Y", filemtime($fn));

in there. :) Thought I got rid of all of those in testing... my
organization has a standard date format and it must be dashes instead of
slashes, and of course it has to be month, day, year!

Jason Wong wrote:
> On Wednesday 09 July 2003 01:51, Shena Delian O'Brien wrote:
>
> [snip]
>
>
>>Well I gradually figured out that the date format output by filemtime()
>>was not an acceptable natural language date format. filemtime() was
>>fetching dates with a dash - ex. 07-08-2003. strtotime() was making
>>incorrect timestamps because it doesn't read dates with dashes formatted
>>that way.

>
>
> What version of PHP are you using? And what exactly is the code that you're
> using?
>
> filemtime() returns a _unix timestamp_ and will asort() as is.
>


Reply With Quote
  #3 (permalink)  
Old 07-08-2003
[-^-!-%-
 
Posts: n/a
Default Pre-Compiled PHP Module: php_imap.so


Is there anyplace to download a pre-compiled PHP module?
I'm looking for the php_imap.so module.

Environment: PHP 4.2.3/Apache on Redhat Linux i386.
Please advise.

-john

=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity

Web Developement. Database. Hosting. Multimedia.



Reply With Quote
  #4 (permalink)  
Old 07-08-2003
R'Twick Niceorgaw
 
Posts: n/a
Default Re: [PHP] Pre-Compiled PHP Module: php_imap.so

On 8 Jul 2003 at 11:17, [-^-!-%- wrote:

>
> Is there anyplace to download a pre-compiled PHP module?
> I'm looking for the php_imap.so module.
>
> Environment: PHP 4.2.3/Apache on Redhat Linux i386.
> Please advise.
>

get the php-imap rpm


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0