public class

TimeParser

extends Object
java.lang.Object
   ↳ org.rrd4j.core.timespec.TimeParser

Class Overview

Class which parses at-style time specification (described in detail on the rrdfetch man page), used in all RRDTool commands. This code is in most parts just a java port of Tobi's parsetime.c code.

Summary

Public Constructors
TimeParser(String dateString)
Constructs TimeParser instance from the given input string.
Public Methods
TimeSpec parse()
Parses the input string specified in the constructor.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TimeParser (String dateString)

Constructs TimeParser instance from the given input string.

Parameters
dateString at-style time specification (read rrdfetch man page for the complete explanation)

Public Methods

public TimeSpec parse ()

Parses the input string specified in the constructor.

Returns
  • Object representing parsed date/time.