Code example for TimeZone

Methods: getOffset

0
 
  public DateTime(Date date, TimeZone zone) {
    long value = date.getTime();
    dateOnly = false;
    this.value = value;
    tzShift = zone.getOffset(value) / 60000;
  } 
 
  public DateTime(long value) {
    this(false, value, null);
  } 
 
  public DateTime(Date value) {
    this(value.getTime());
  } 
 
  public DateTime(long value, Integer tzShift) {
    this(false, value, tzShift);
  } 
 
Connect your IDE to all the code out there  Get Codota for Java