|
Posted by Jason Carlton on 11/29/07 09:30
> I think you don't have a timestamp in the true sense, I think your
> $timestamp variables shows an unformated date '2007-11-28 23:11:14'.
>
> Which is what you looked for in your regular expression in perl, i think.
<snip>
I guess it's usually called a "datetime" instead of a "timestamp". I
didn't know that until I started researching it tonight, though.
You're correct, the format I have doesn't have any delimiters, it's
just a series of 14 numbers. I have been using substr, like you
suggested, but since the format I used in Perl was a lot faster than
the Perl version of substr, I was hoping that there might be a faster
option in PHP, too.
Using substr seems to be pretty fast at the moment, though, so maybe
it's not too bad. PHP seems to process a bit faster than Perl did,
probably because it doesn't need the external DBI module.
- Jason
Navigation:
[Reply to this message]
|