1 | <?php |
||
12 | class Util |
||
13 | { |
||
14 | /** |
||
15 | * Bugfix for get monday of this week. |
||
16 | * |
||
17 | * @see https://bugs.php.net/bug.php?id=63740 |
||
18 | * @codeCoverageIgnore |
||
19 | * |
||
20 | * @param \DateTime $date |
||
21 | * |
||
22 | * @return \DateTime |
||
23 | */ |
||
24 | public static function getMondayThisWeek(\DateTime $date) |
||
38 | |||
39 | /** |
||
40 | * @param \DateTime $date |
||
41 | * @param int $seconds |
||
42 | * |
||
43 | * @return \DateTime |
||
44 | */ |
||
45 | 8 | public static function roundDate(\DateTime $date, $seconds) |
|
51 | } |
||
52 |