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

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

Introduction

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

Prototype

@Override
public long getFirstMillisecond() 

Source Link

Document

Returns the first millisecond of the week.

Usage

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

/**
 * Some checks for the getFirstMillisecond() method.
 *//*  w  ww.  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"));
    Week w = new Week(3, 1970);
    assertEquals(946800000L, w.getFirstMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}