code: public static YearQuarter now(Clock clock) {
          final LocalDate now = LocalDate.now(clock);  // called once
          return YearQuarter.of(now.getYear(), Quarter.from(now.getMonth()));
      }
docs: Obtains the current year-quarter from the specified clock.
  <p>
  This will query the specified clock to obtain the current year-quarter.
  Using this method allows the use of an alternate clock for testing.
  The alternate clock may be introduced using {@link Clock dependency injection}.
  
  @param clock  the clock to use, not null
  @return the current year-quarter, not null