Example usage for org.jfree.data.time Year getFirstMillisecond

List of usage examples for org.jfree.data.time Year getFirstMillisecond

Introduction

In this page you can find the example usage for org.jfree.data.time Year getFirstMillisecond.

Prototype

@Override
public long getFirstMillisecond() 

Source Link

Document

Returns the first millisecond of the year.

Usage

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

/**
 * Some checks for the getFirstMillisecond() method.
 *//* ww  w  .  j  a v  a2  s.  c o m*/
@Test
public void testGetFirstMillisecond() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.UK);
    TimeZone savedZone = TimeZone.getDefault();
    TimeZone.setDefault(TimeZone.getTimeZone("Europe/London"));
    Year y = new Year(1970);
    // TODO: Check this result...
    assertEquals(-3600000L, y.getFirstMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}