2009-12-18T11:10:11.122-05:00
and
Fri, 18 Dec 2009 11:10:12 -0500
I want to convert both to YmdHis format; eg, 20091218111012
Other than manually breaking them down, is there a simple way to do
this?
TIA,
Jason
http://www.php.net/manual/en/function.strtotime.php
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
http://nl.php.net/manual/en/function.date-parse-from-format.php
or
http://nl.php.net/manual/en/function.date-parse.php
look at the examples, and pick the one you like most ;-)
--
Luuk
OK Hands down I like that date-parse-from-format function, putting that
one in my notebook.
Thanks
Scotty
you better put php.net in there, and start searching there if you need
something that you dont know how to do... ;-)
--
Luuk
HUH???
What the heck is wrong with people around here. You give them a
complement and all they can do is criticize. Maybe you need to get out
of your Mommies basement and realize in the real world most people have
to work for a living and don't have the time to read the manual from
page to page, but realize when someone brings a good function to light
that may be needed in the 'future'.
Scotty
Thanks for the tips, all. I had looked at strtotime() before, but
didn't understand how to use it to do this.
Scotty, I couldn't agree more, and I think it's one of the main
reasons for the demise of newsgroups. More and more people are using
moderated message boards now, because people are generally mean and
rude in NGs. IMO, we're witnessing the end of an era.
This NG isn't as bad as some, though; at least people help. I can't
stand comp.lang.perl.misc anymore.
> Luuk wrote:
>> Op 19-12-2009 15:01, Scott Johnson schreef:
>>> Luuk wrote:
>>>> Jason Carlton schreef:
<snip>
>>> OK Hands down I like that date-parse-from-format function,
>>> putting that one in my notebook.
>>>
>>> Thanks
>>> Scotty
>>
>> you better put php.net in there, and start searching there if
>> you need something that you dont know how to do... ;-)
>>
>
> HUH???
>
> What the heck is wrong with people around here. You give them a
> complement and all they can do is criticize.
Maybe just me, but it didn't seem like Luuk was intending to
criticize.
> Maybe you need to
> get out of your Mommies basement and realize in the real world
> most people have to work for a living and don't have the time to
> read the manual from page to page, but realize when someone
> brings a good function to light that may be needed in the
> 'future'.
Even if you did have a lot of free time, trying to memorize the
manual, page by page, would be poor use of your time. As long as
you know how to find the information you need, when you need it,
you're fine.
Whenever I look up something in the PHP docs, I sometimes take a
few minutes to glance a few of the related functions listed on the
left side of the page. I don't memorize them, but knowing they're
there when the need arises can be helpful. Even though I don't
live in my mom's basement (if she had one), I think I do okay.
:-)
--
Curtis Dyer
<? $x='<? $x=%c%s%c;printf($x,39,$x,39);?>';printf($x,39,$x,39);?>
Spot on. I also learned not to post a reply when you have just been
arguing with the wife.
Luuk my apologies for being rude, maybe you had me confused with the OP,
I don't know. I gotta learn to leave and come back before posting a
retort.
Peace Out
Scotty
lol, my reply was ment as an advice too.... ;-)
But sometimes its hard to write te proper English words, and someone
like /me who is not a native English speaker might do it wrong ?
--
Luuk
> What the heck is wrong with people around here. You give them a
> complement and all they can do is criticize. Maybe you need to get out
> of your Mommies basement and realize in the real world most people have
> to work for a living and don't have the time to read the manual from
> page to page, but realize when someone brings a good function to light
> that may be needed in the 'future'.
Hmm...I work for a living, and I find it way faster to search php.net
than post to Usenet and wait for a response...
I agree, but if you are replying to me, what is your point?
I use php.net pretty much most of the time unless I have a technique issue.
Scotty
Scotty, here's an abbreviated path of conversation to which I was
referring:
<snippet>
Scotty wrote:
> Luuk wrote:
>
> > you better put php.net in there, and start searching there if you need
> > something that you dont know how to do... ;-)
>
> Maybe you need to get out of your Mommies basement and realize in
> the real world most people have to work for a living and don't
> have the time to read the manual from page to page
</snippet>
I interpreted that as you criticizing php.net as a useful resource for
the active/employed programmer. Sorry if I misunderstood your
intentions.
> I use php.net pretty much most of the time unless I have a technique issue.
Actually, I find that the user comments on many of the manual pages
are chock full of good techniques as well.
Matt
I just wanted to make sure I understood what you where saying. So often
there are many different languages and cultures here and that is very
hard to interpret text in the proper context. I did not read anything
that needs apologize over.....unless you know something I don't..:)
As for the manual....
Oh yeah, if you stop at the actual manual pages, you do end up missing
some valuable info, plus some extra ways to use the functions not shown
in the 'official' text.
Keep on chugging alone...
Scotty
> Keep on chugging alone...
I hope you meant "along"...big difference :D
WOOPS...ya that could of been takin very badly...
Scotty