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 wrote:
hey,
i needed
strptime()
for a project i'm working on, its awful handy when
you are making dates withstrftime()
. any objections to committing
the attached patch?-sterling
no love for gmail attachments apparently, attached is another effort.
-sterling
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
Sterling Hughes wrote:
i needed
strptime()
for a project i'm working on, its awful handy when
you are making dates withstrftime()
. 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
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:
Sterling Hughes wrote:
i needed
strptime()
for a project i'm working on, its awful handy when
you are making dates withstrftime()
. 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
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
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:
Sterling Hughes wrote:
i needed
strptime()
for a project i'm working on, its awful handy when
you are making dates withstrftime()
. 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.
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
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 withstrftime()
. 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