Get checkpoints for the month.

@param int                     $vehicleId
@param int                     $year
@param int                     $month
@param \Katsana\Sdk\Query|null $query

@return \Laravie\Codex\Contracts\Response
490252
public function month(int $vehicleId, int $year, int $month = 1, ?Query $query = null): Response
    {
        $this->requiresAccessToken();

        return $this->send(
            'GET',
            "vehicles/{$vehicleId}/checkpoints/{$year}/{$month}",
            $this->getApiHeaders(),
            $this->buildHttpQuery($query)
        );
    }
800629
public function getMonth($yearOrStart, $month = null)
    {
        if (!$yearOrStart instanceof \DateTime) {
            $yearOrStart = new \DateTime(sprintf('%s-%s-01', $yearOrStart, $month));
        }

        return $this->getFactory()->createMonth($yearOrStart);
    }
897903
public function setDate($year, $month, $day)
    {
        return parent::setDate(self::$yearMustAlwaysBe, self::$monthMustAlwaysBe, self::$dayMustAlwaysBe);
    }
1321554
public function getImagesWithQuery(int $id, array $query): array
    {
        /* @var TheTVDbAPILanguageFallback $parent */
        $parent  = $this->parent;
        $closure = $this->getClosureForImagesWithQuery($id, ['query' => $query]);

        return $parent->getGenerator()->create($closure, Image::class, $this->parent->getAcceptedLanguages(), true);
    }
826029
public function scopeDate($query, $year = '', $month ='', $day ='')
    {
        if($year) {
            $query->whereMonth($this->getTable().'.created_at', $year);
        }

        if($month) {
            $query->whereYear($this->getTable().'.created_at', $month);
        }

        if($day) {
            $query->whereDay($this->getTable().'.created_at', $day);
        }
        return $query;
    }
352278
public function monthFirstChildQuery(int $year1 = -1, int $year2 = -1): Builder
    {
        $first_child_subquery = DB::table('link')
            ->join('dates', static function (JoinClause $join): void {
                $join
                    ->on('d_gid', '=', 'l_to')
                    ->on('d_file', '=', 'l_file')
                    ->where('d_julianday1', '<>', 0)
                    ->whereIn('d_month', ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']);
            })
            ->where('l_file', '=', $this->tree->id())
            ->where('l_type', '=', 'CHIL')
            ->select(['l_from AS family_id', DB::raw('MIN(d_julianday1) AS min_birth_jd')])
            ->groupBy('family_id');

        $query = DB::table('link')
            ->join('dates', static function (JoinClause $join): void {
                $join
                    ->on('d_gid', '=', 'l_to')
                    ->on('d_file', '=', 'l_file');
            })
            ->joinSub($first_child_subquery, 'subquery', static function (JoinClause $join): void {
                $join
                    ->on('family_id', '=', 'l_from')
                    ->on('min_birth_jd', '=', 'd_julianday1');
            })
            ->where('link.l_file', '=', $this->tree->id())
            ->where('link.l_type', '=', 'CHIL')
            ->select(['d_month', DB::raw('COUNT(*) AS total')])
            ->groupBy(['d_month']);

        if ($year1 >= 0 && $year2 >= 0) {
            $query->whereBetween('d_year', [$year1, $year2]);
        }

        return $query;
    }
1302334
public static function avgHourly($object, $objectId, $year, $month)
    {
        $statArray = [];
        //pobieranie wierszy
        foreach (self::getRows($object, $objectId, $year, $month, null, true) as $stat) {
            $statArray[$stat->hour] = $stat->count;
        }
        $stats = [];
        //układanie wierszy w kubełkach godzin
        for ($i = 0; $i <= 23; $i++) {
            $hour = $i;
            $count = 0;
            if (isset($statArray[$hour])) {
                $count = $statArray[$hour];
            }
            $stats[$hour] = $count;
        }
        return $stats;
    }
98489
public function duration(int $vehicleId, string $start, string $end, ?Query $query = null): Response
    {
        $this->requiresAccessToken();

        $payload = $this->buildHttpQuery($query);
        $payload['start'] = $start;
        $payload['end'] = $end;

        return $this->send(
            'GET',
            "vehicles/{$vehicleId}/travels/duration",
            $this->getApiHeaders(),
            $payload
        );
    }
808215
public function getRelativeYearCount($end = null, $locale = null, $query = null, $cacheKey = null)
    {
        if (is_null($end))
        {
            $end = Carbon::today();
        }

        return $this->getCountInBetween($end->copy()->subYear()->startOfDay(), $end->endOfDay(), $locale, $query, $cacheKey);
    }
1134654
public function archiveMonthlyAction($year, $month, Request $request = null)
    {
        $action = $this->container->get(MonthlyPostArchiveAction::class);

        return $action($this->resolveRequest($request), $year, $month);
    }
311126
public function scopePublishedAt(Builder $query, $year)
    {
        return $this->scopePublished($query)
                    ->where(DB::raw('YEAR(published_at)'), $year);
    }
1305615
public static function createDate($year = null, $month = null, $day = null, $timezone = null)
    {
        return static::create($year, $month, $day, null, null, null, $timezone);
    }
435577
protected function islamicToJd($year, $month, $day)
    {
        $jd = (int)((11 * $year + 3) / 30) + (int)(354 * $year) + (int)(30 * $month) 
            - (int)(($month - 1) / 2) + $day + 1948440 - 385;
        return $jd;
    }
214526
public function getEpisodesWithQuery(int $id, array $query): PaginatedResults
    {
        /* @var TheTVDbAPILanguageFallback $parent */
        $parent  = $this->parent;
        $closure = $this->getClosureForEpisodesWithQuery($id, ['query' => $query]);

        return new PaginatedResults(
            $parent->getGenerator()->create($closure, BasicEpisode::class, $this->parent->getAcceptedLanguages(), true),
            $this->parent->getLastLinks()
        );
    }
727428
protected static function jalali2julian($year, $month, $day) {
        
        $parsed = self::parseJalali($year);
        
        return self::georgian2julian($parsed['gYear'], 3, $parsed['march']) + ($month - 1) * 31 - self::division($month, 7) * ($month - 7) + $day - 1;
    }
1189204
public static function getDaysInMonth($month, $year)
    {
        if ($year == 1582 && $month == 10) {
            return 21;  // October 1582 only had 1st-4th and 15th-31st
        }

        if ($month == 2) {
            if (self::isLeapYear($year)) {
                return 29;
            } else {
                return 28;
            }
        } elseif ($month == 4 or $month == 6 or $month == 9 or $month == 11) {
            return 30;
        } else {
            return 31;
        }
    }
912647
public function withDateAt(int $year = null, int $month = null, int $day = null) : self
    {
        if (null === $year && null === $month && null === $day) {
            return $this;
        }
        
        $year  = $year === null ? $this->year() : $year;
        $month = $month ?: $this->month();
        $day   = $day   ?: $this->day();
        
        $instance = clone $this;
        
        $instance->date->setDate($year, $month, $day);
        
        return $instance;
    }