$relativePattern
$relativePattern :
Provides methods for testing if strings contain relative keywords.
hasRelativeKeywords(string $time) : boolean
Determine if there is a relative keyword in the time string, this is to create dates relative to now for test instances. e.g.: next tuesday
string | $time | The time string to check. |
true if there is a keyword, otherwise false
Loading…