MDL-84171 libraries: upgrade to version 3.1.2 of ZipStream.

This commit is contained in:
Paul Holden
2025-02-11 09:55:13 +00:00
parent 139a0ad5f0
commit ab68313384
9 changed files with 67 additions and 55 deletions
+7 -13
View File
@@ -26,20 +26,14 @@ abstract class Time
$dateTime = DateTimeImmutable::createFromInterface($dateTime)->sub(new DateInterval('P1980Y'));
['year' => $year,
'mon' => $month,
'mday' => $day,
'hours' => $hour,
'minutes' => $minute,
'seconds' => $second
] = getdate($dateTime->getTimestamp());
[$year, $month, $day, $hour, $minute, $second] = explode(' ', $dateTime->format('Y n j G i s'));
return
($year << 25) |
($month << 21) |
($day << 16) |
($hour << 11) |
($minute << 5) |
($second >> 1);
((int) $year << 25) |
((int) $month << 21) |
((int) $day << 16) |
((int) $hour << 11) |
((int) $minute << 5) |
((int) $second >> 1);
}
}