Example usage for org.jfree.data.time Hour parseHour

List of usage examples for org.jfree.data.time Hour parseHour

Introduction

In this page you can find the example usage for org.jfree.data.time Hour parseHour.

Prototype

public static Hour parseHour(String s) 

Source Link

Document

Creates an Hour instance by parsing a string.

Usage

From source file:org.jfree.data.time.HourTest.java

/**
 * Problem for date parsing./*ww  w  .  j a v a  2 s.co m*/
 */
@Test
public void testParseHour() {
    // test 1...
    Hour h = Hour.parseHour("2002-01-29 13");
    assertEquals(13, h.getHour());
}

From source file:org.jfree.data.time.junit.HourTest.java

/**
 * Problem for date parsing.//from  ww  w .  j a va 2 s.co m
 */
public void testParseHour() {
    // test 1...
    Hour h = Hour.parseHour("2002-01-29 13");
    assertEquals(13, h.getHour());
}