src/YearMonth.php
public static function now(TimeZone $timeZone, Clock $clock = null) : YearMonth
    {
        $localDate = LocalDate::now($timeZone, $clock);

        return new YearMonth($localDate->getYear(), $localDate->getMonth());
    }
public static function now(TimeZone $timeZone, Clock $clock = null) : YearMonth
    {
        $localDate = LocalDate::now($timeZone, $clock);

        return new YearMonth($localDate->getYear(), $localDate->getMonth());
    }
public static function now ( TimeZone $ timeZone , Clock $ clock = null ) : YearMonth { $ localDate = LocalDate :: now ( $ timeZone , $ clock ) ; return new YearMonth ( $ localDate -> getYear ( ) , $ localDate -> getMonth ( ) ) ; }
Returns the current year-month in the given time-zone, according to the given clock.

If no clock is provided, the system clock is used.

@param TimeZone   $timeZone
@param Clock|null $clock

@return YearMonth
Returns the current year - month in the given time - zone according to the given clock .