@@ -550,8 +550,8 @@ discard block |
||
550 | 550 | |
551 | 551 | // convert to units of 100 ns since 1601: |
552 | 552 | $unpackedTimestamp = unpack('v4', $oleTimestamp); |
553 | - $timestampHigh = (float)$unpackedTimestamp[4] * 65536 + (float)$unpackedTimestamp[3]; |
|
554 | - $timestampLow = (float)$unpackedTimestamp[2] * 65536 + (float)$unpackedTimestamp[1]; |
|
553 | + $timestampHigh = (float) $unpackedTimestamp[4] * 65536 + (float) $unpackedTimestamp[3]; |
|
554 | + $timestampLow = (float) $unpackedTimestamp[2] * 65536 + (float) $unpackedTimestamp[1]; |
|
555 | 555 | |
556 | 556 | // translate to seconds since 1601: |
557 | 557 | $timestampHigh /= 10000000; |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | // translate to seconds since 1970: |
564 | 564 | $unixTimestamp = floor(65536.0 * 65536.0 * $timestampHigh + $timestampLow - $days * 24 * 3600 + 0.5); |
565 | 565 | |
566 | - if( (int) $unixTimestamp == $unixTimestamp ) { |
|
566 | + if ((int) $unixTimestamp == $unixTimestamp) { |
|
567 | 567 | return (int) $unixTimestamp; |
568 | 568 | } else { |
569 | 569 | return $unixTimestamp >= 0.0 ? PHP_INT_MAX : PHP_INT_MIN; |