Example usage for com.google.gwt.i18n.client TimeZone getOffset

List of usage examples for com.google.gwt.i18n.client TimeZone getOffset

Introduction

In this page you can find the example usage for com.google.gwt.i18n.client TimeZone getOffset.

Prototype

public int getOffset(Date date) 

Source Link

Usage

From source file:org.ssgwt.client.i18n.SSDate.java

License:Apache License

/**
 * Sets the time zone of the date/*  www  .  j a  v  a 2  s .  com*/
 *
 * @author Johannes Gryffenberg <johannes.gryffenberg@gmail.com>
 * @since  16 July 2016
 *
 * @param timeZone - The time zone of the date
 */
public void setTimeZone(TimeZone timeZone) {
    setTimezoneOffset(timeZone.getOffset(this));
    this.timeZone = timeZone;
}