PHP 트레잇 Webiny\Component\StdLib\StdObject\DateTimeObject\ValidatorTrait

상속: use trait Webiny\Component\StdLib\ValidatorTrait
파일 보기 프로젝트 열기: Webiny/Framework

공개 메소드들

메소드 설명
isFuture ( ) : boolean Check if current DateTimeObject is in future.
isLeap ( ) : string Check if current DateTimeObject is a leap year.
isPast ( ) : boolean Check if current DateTimeObject is in past.
largerThan ( integer | string | DateTime | DateTimeObject $time ) : boolean Check if current datetime is larger than $time.
smallerThan ( integer | string | DateTime | DateTimeObject $time ) : boolean Check if current datetime smaller than $time.

메소드 상세

isFuture() 공개 메소드

Check if current DateTimeObject is in future.
public isFuture ( ) : boolean
리턴 boolean Boolean true if the date is in the future. Otherwise false.

isLeap() 공개 메소드

Check if current DateTimeObject is a leap year.
public isLeap ( ) : string
리턴 string Boolean true if it's a leap year.

isPast() 공개 메소드

Check if current DateTimeObject is in past.
public isPast ( ) : boolean
리턴 boolean Boolean true if the date is in the past. Otherwise false.

largerThan() 공개 메소드

Check if current datetime is larger than $time.
public largerThan ( integer | string | DateTime | DateTimeObject $time ) : boolean
$time integer | string | DateTime | DateTimeObject Date to compare to.
리턴 boolean Boolean true if current date object is larger than the provided $time.

smallerThan() 공개 메소드

Check if current datetime smaller than $time.
public smallerThan ( integer | string | DateTime | DateTimeObject $time ) : boolean
$time integer | string | DateTime | DateTimeObject Date to compare to.
리턴 boolean Boolean true if current date object is smaller than the provided $time.