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

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

Introduction

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

Prototype

@Override
public long getLastMillisecond() 

Source Link

Document

Returns the last millisecond of the week.

Usage

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

/**
 * Some checks for the getLastMillisecond() method.
 */// www.ja  va2s. c om
@Test
public void testGetLastMillisecond() {
    Locale saved = Locale.getDefault();
    Locale.setDefault(Locale.UK);
    TimeZone savedZone = TimeZone.getDefault();
    TimeZone.setDefault(TimeZone.getTimeZone("Europe/London"));
    Week w = new Week(31, 1970);
    assertEquals(18485999999L, w.getLastMillisecond());
    Locale.setDefault(saved);
    TimeZone.setDefault(savedZone);
}