I am trying to generate a 13 character timestamp based on unix timestamp format and can't seem to understand where the 13 characters come from. I have seen results from multiple sites using this type of timestamp but can't seem to generate it myself.

time() does give me most of it but it is only 10 characters. What are these last 3 that they are generating? Milliseconds or microseconds? Any help would be greatly appreciated.

Thanks!
Chris

    It's milliseconds since the "UNIX epoch".

    Simple conversion if exact milliseconds not important:

    $timeMilli = time() . '000';
    

    If exact milliseconds are desired and your system supports it:

    list($usec, $sec) = explode(" ", microtime());
    $time13 = sprintf('%d%03d', $sec, $usec/1000);
    
      Write a Reply...