java.lang.Object
org.rrd4j.graph.SimpleTimeLabelFormat
- All Implemented Interfaces:
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
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionSimpleTimeLabelFormat(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
Field Details
format
The pattern to render with - an strftime pattern or a simple date format.
Constructor Details
SimpleTimeLabelFormat
Create a new instance using a format string that is either an strftime patter or a simple date format pattern.- Parameters:
format- an strftime pattern, or a simple date format pattern if it has no %
Method Details
format
Renders a calendar with the strftime pattern, or with a simple date format when the pattern has no%.- Specified by:
formatin interfaceTimeLabelFormat- Parameters:
calendar- calendar to use for the formatterlocale- locale that will be used withString.format- Returns:
- formatted string for the timestamp