All4172 Posted July 14, 2006 Share Posted July 14, 2006 I'm trying to recreate the following in PHP DATE but unsure of what the entire stamp on the end is:20060713105052006 = Year07 = July13 = Day in month10505 = ?????????Any ideas of what the 5 digit code on the end is? Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/ Share on other sites More sharing options...
kenrbnsn Posted July 14, 2006 Share Posted July 14, 2006 Where did you get this number?Ken Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/#findComment-57738 Share on other sites More sharing options...
All4172 Posted July 14, 2006 Author Share Posted July 14, 2006 Its some sort of a date stamp that is used to tag article files. I'm attempting to reproduce it within a PHP script but don't have access to seeing how the original date stamp is done. Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/#findComment-57743 Share on other sites More sharing options...
kenrbnsn Posted July 14, 2006 Share Posted July 14, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/#findComment-57747 Share on other sites More sharing options...
All4172 Posted July 14, 2006 Author Share Posted July 14, 2006 Well best clue I have is this here:2006070710348From 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. Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/#findComment-57755 Share on other sites More sharing options...
BillyBoB Posted July 14, 2006 Share Posted July 14, 2006 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 $timeecho ("$time")?>[/code]after this it comes out like this Thursday July 13th, 2006 04:42 PM Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/#findComment-57761 Share on other sites More sharing options...
BillyBoB Posted July 14, 2006 Share Posted July 14, 2006 oh and the -5 is for GMT - 5did this help? Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/#findComment-57762 Share on other sites More sharing options...
All4172 Posted July 14, 2006 Author Share Posted July 14, 2006 Yes thanks for the help :) Quote Link to comment https://forums.phpfreaks.com/topic/14555-php-date-stamp-question/#findComment-57783 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.