@@ 63-65 (lines=3) @@ | ||
60 | } |
|
61 | ||
62 | // "per direct" => now |
|
63 | if (preg_match('/(per )?dire(c|k)t/i', $value) || preg_match('/(gelijk|heden)/i', $value)) { |
|
64 | return new \DateTime('now', $this->timezone); |
|
65 | } |
|
66 | ||
67 | // [sinds] 2 [mnd|maand|maanden] |
|
68 | if (preg_match('/^(sinds\s)?(?P<months>\d+)\s(maand|maanden|mnd)\s?\+?/i', $value, $matches)) { |
|
@@ 68-70 (lines=3) @@ | ||
65 | } |
|
66 | ||
67 | // [sinds] 2 [mnd|maand|maanden] |
|
68 | if (preg_match('/^(sinds\s)?(?P<months>\d+)\s(maand|maanden|mnd)\s?\+?/i', $value, $matches)) { |
|
69 | return new \DateTime(sprintf('-%s months', $matches['months']), $this->timezone); |
|
70 | } |
|
71 | ||
72 | // [12] oktober 2012|'12 |
|
73 | $regex = '/^(?P<day>\d*\s?)?(?P<month>' . $this->monthRegex . ')\s+(?P<year>\d{4}|\\\'\d{2})/i'; |