strptime patch

php.internals

Sterling Hughes

21 years ago
hey, i needed strptime() for a project i'm working on, its awful handy when you are making dates with strftime(). any objections to committing the attached patch? -sterling

Sterling Hughes

21 years ago
Sterling Hughes wrote:
>hey, > >i needed strptime() for a project i'm working on, its awful handy when >you are making dates with strftime(). any objections to committing >the attached patch? > >-sterling > > >
no love for gmail attachments apparently, attached is another effort. -sterling

Derick Rethans

21 years ago
On Mon, 27 Sep 2004, Sterling Hughes wrote:
> no love for gmail attachments apparently, attached is another effort.
It meant that gmail didn't make it a text/plain attachment like it should have done ;-) Derick

Derick Rethans

21 years ago
On Mon, 27 Sep 2004, Sterling Hughes wrote:
> Sterling Hughes wrote: > > >i needed strptime() for a project i'm working on, its awful handy when > >you are making dates with strftime(). any objections to committing > >the attached patch?
I think we need another #ifdef for this for the unlikely situation where strptime is not available and strftime is. Derick

Sterling Hughes

21 years ago
they are both in Single UNIX, its pretty reliable in my experience where one is, the other follows. i've only ran into difficulties wrt to what features are available on different OS', do you know a case where strptime isn't avail and strftime is? -sterling On Tue, 28 Sep 2004 08:07:55 +0200 (CEST), Derick Rethans <derick@php.net> wrote:

Derick Rethans

21 years ago
On Tue, 28 Sep 2004, Sterling Hughes wrote:
> they are both in Single UNIX, its pretty reliable in my experience > where one is, the other follows. i've only ran into difficulties wrt > to what features are available on different OS', do you know a case > where strptime isn't avail and strftime is?
Nope, I don't... but it's an very easy check to add, so why not do it to be sure? Derick

Wez Furlong

21 years ago
*cough* windows *cough* probably doesn't have strptime (not that you'd care ;-)) It's also probably a good idea to add the check for the wierdo unix flavours, just to be safe. --Wez. On Tue, 28 Sep 2004 00:02:59 -0700, Sterling Hughes <sterling.hughes@gmail.com> wrote:

Sterling Hughes

21 years ago
On Tue, 28 Sep 2004 08:28:39 +0100, Wez Furlong <kingwez@gmail.com> wrote:
> *cough* windows *cough* probably doesn't have strptime (not that you'd care ;-)) >
do we still support that platform? who knew? :-P sometimes i often wonder if Zend integrated the Performance Suite into PHP, if we could drop the windows port and let them sell the only commercial version.... then I go back to calling windmills names.
> It's also probably a good idea to add the check for the wierdo unix > flavours, just to be safe. >
yeah, fair enough. its easy to add anyway. assume its in my patch. any other issues? -Sterling

Marcus Börger

21 years ago
Hello Sterling, the proto is slightly wrong. +/* {{{ proto array strptime(string timestamp, string format) + Parse a time/date generated with strftime() into its components */ regards marcus Tuesday, September 28, 2004, 6:15:35 AM, you wrote:
> Sterling Hughes wrote:
>>hey, >> >>i needed strptime() for a project i'm working on, its awful handy when >>you are making dates with strftime(). any objections to committing >>the attached patch? >> >>-sterling >> >> >> > no love for gmail attachments apparently, attached is another effort.
> -sterling
-- Best regards, Marcus mailto:helly@php.net