44 $this->rangeConds = [];
47 if ( $startStamp !==
'' ) {
48 $startTimestamp = MWTimestamp::getInstance( $startStamp );
49 $startOffset = $this->mDb->timestamp( $startTimestamp->getTimestamp() );
50 $this->rangeConds[] = $this->mIndexField .
'>=' . $this->mDb->addQuotes( $startOffset );
53 if ( $endStamp !==
'' ) {
54 $endTimestamp = MWTimestamp::getInstance( $endStamp );
55 $endOffset = $this->mDb->timestamp( $endTimestamp->getTimestamp() );
56 $this->rangeConds[] = $this->mIndexField .
'<=' . $this->mDb->addQuotes( $endOffset );
59 $this->mYear = (int)$endTimestamp->format(
'Y' );
60 $this->mMonth = (int)$endTimestamp->format(
'm' );
61 $this->mDay = (int)$endTimestamp->format(
'd' );
62 $this->mOffset = $endOffset;
64 }
catch ( TimestampException $ex ) {