getid3_matroska::EBMLdate2unix() –

You appear to be a bot. Output may be restricted

Description

Usage

$float = getid3_matroska::EBMLdate2unix( $EBMLdatestamp );

Parameters

$EBMLdatestamp
( int ) required

Returns

float

Source

File name: wordpress/wp-includes/ID3/module.audio-video.matroska.php
Lines:

1 to 5 of 5
  private static function EBMLdate2unix($EBMLdatestamp) {
    // Date - signed 8 octets integer in nanoseconds with 0 indicating the precise beginning of the millennium (at 2001-01-01T00:00:00,000000000 UTC)
    // 978307200 == mktime(0, 0, 0, 1, 1, 2001) == January 1, 2001 12:00:00am UTC
    return round(($EBMLdatestamp / 1000000000) + 978307200);
  }
 

 View on GitHub View on Trac