code: private void drawTime(final ZonedDateTime TIME) {
          // draw the time
          if (clock.isTextVisible()) {
              if (Locale.US == clock.getLocale()) {
                  timeText.setText(clock.isSecondsVisible() ? AMPM_HHMMSS_FORMATTER.format(TIME) : AMPM_HHMM_FORMATTER.format(TIME));
              } else {
                  timeText.setText(clock.isSecondsVisible() ? HHMMSS_FORMATTER.format(TIME) : HHMM_FORMATTER.format(TIME));
              }
              timeText.setX((width - timeText.getLayoutBounds().getWidth()) * 0.5);
          }
  
          // draw the date
          if (clock.isDateVisible()) {
              dateText.setText(dateFormat.format(TIME));
              dateText.setX((width - dateText.getLayoutBounds().getWidth()) * 0.5);
          }
      }
docs: ******************** Canvas ********************************************