Example usage for com.google.gwt.core.client JsDate setHours

List of usage examples for com.google.gwt.core.client JsDate setHours

Introduction

In this page you can find the example usage for com.google.gwt.core.client JsDate setHours.

Prototype

public final native double setHours(int hours, int mins, int secs, int ms) ;

Source Link

Document

Sets the hour, minutes, seconds, and milliseconds.

Usage

From source file:gov.nist.spectrumbrowser.client.SensorInfoDisplay.java

License:Open Source License

long getSelectedDayBoundary(long time) {
    JsDate jsDate = JsDate.create(time * 1000);
    jsDate.setHours(0, 0, 0, 0);
    return (long) jsDate.getTime() / 1000;
}