# strptime patch

- Thread: https://externals.io/message/13035
- Original archive: https://news-web.php.net/php.internals/13035
- Started by Sterling Hughes on 2004-09-28T04:13:34+00:00
- Messages: 9
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #13035 — Sterling Hughes — 2004-09-28T04:13:34+00:00

URL: https://externals.io/message/13035#13035

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

---

## #13036 — Sterling Hughes — 2004-09-28T04:15:35+00:00

URL: https://externals.io/message/13035#13036 · In reply to: #13035

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

---

## #13037 — Derick Rethans — 2004-09-28T06:03:46+00:00

URL: https://externals.io/message/13035#13037 · In reply to: #13036

> 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

---

## #13038 — Derick Rethans — 2004-09-28T06:07:55+00:00

URL: https://externals.io/message/13035#13038 · In reply to: #13036

> Sterling Hughes wrote:
>
> > […]

I think we need another #ifdef for this for the unlikely situation where
strptime is not available and strftime is.

Derick

---

## #13040 — Marcus Boerger — 2004-09-28T06:36:36+00:00

URL: https://externals.io/message/13035#13040 · In reply to: #13036

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:

> > […]
> no love for gmail attachments apparently, attached is another effort.

> -sterling



-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #13041 — Sterling Hughes — 2004-09-28T07:02:59+00:00

URL: https://externals.io/message/13035#13041 · In reply to: #13038

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:
> 
> 
> > […]
> 
> I think we need another #ifdef for this for the unlikely situation where
> strptime is not available and strftime is.
> 
> Derick

---

## #13042 — Derick Rethans — 2004-09-28T07:05:08+00:00

URL: https://externals.io/message/13035#13042 · In reply to: #13041

> 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

---

## #13043 — Wez Furlong — 2004-09-28T07:28:39+00:00

URL: https://externals.io/message/13035#13043 · In reply to: #13041

*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:
> 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:
> > […]

---

## #13051 — Sterling Hughes — 2004-09-28T16:50:17+00:00

URL: https://externals.io/message/13035#13051 · In reply to: #13043

> *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
