org.rrd4j.graph

## Class SimpleTimeLabelFormat

- java.lang.Object
- - org.rrd4j.graph.SimpleTimeLabelFormat

- All Implemented Interfaces:
    TimeLabelFormat

      public class SimpleTimeLabelFormat
      extends Object
      implements TimeLabelFormat

  Simple time label using a format similar to `strftime`. For more details on the supported conversions see the Date/Time Conversions section for `Formatter`. Examples:
  - strftime pattern: `%Y-%m-%dT%H:%M:%S`
  - simple date format pattern: `yyyy'-'MM'-'dd'T'HH':'mm':'ss`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleTimeLabelFormat(String format)` Create a new instance using a format string that is either an strftime patter or a simple date format pattern.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `format(Calendar calendar, Locale locale)` Format a timestamp.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleTimeLabelFormat

          public SimpleTimeLabelFormat(String format)

      Create a new instance using a format string that is either an strftime patter or a simple date format pattern.
      Parameters:
        `format` -

  - ### Method Detail

    - #### format

          public String format(Calendar calendar,
                               Locale locale)

      Description copied from interface: `TimeLabelFormat`
      Format a timestamp.
      Specified by:
        `format` in interface `TimeLabelFormat`
      Parameters:
        `calendar` - calendar to use for the formatter
        `locale` - locale that will be used with `String.format`
      Returns:
        formatted string for the timestamp