Jump to content

PHP Date stamp question...


All4172

Recommended Posts

Do you have any other clues. Is it used in any displays where it is formatted. Do you have anymore examples of the number? Those remaining 5 digits could be just a id tacked on for other purposes. Without more examples, I don't think we can give you an exact answer.

Ken
Link to comment
Share on other sites

Well best clue I have is this here:

2006070710348

From the Article date itself it appear to be created at 3:48 in the afternoon....and I "think" that when its 10348 that equals 3:48 PM, and if its 00348 that would equal 3:48 AM.  At least that's the best I can come up with.
Link to comment
Share on other sites

thats the timing i dont know exactly what it is but heres how i decode it

[code]
<?php
$datefromdb = $row['table_row'];
$year = substr($datefromdb,0,4);
$mon  = substr($datefromdb,4,2);
$day  = substr($datefromdb,6,2);
$hour = substr($datefromdb,8,2);
$hour = $hour - 5;
$min  = substr($datefromdb,10,2);
$sec  = substr($datefromdb,12,2);
$time = date("l F dS, Y h:i A",mktime($hour,$min,$sec,$mon,$day,$year));

//then u could display the $time

echo ("$time")
?>
[/code]
after this it comes out like this

Thursday July 13th, 2006 04:42 PM
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.