Example usage for org.joda.time.tz FixedDateTimeZone FixedDateTimeZone

List of usage examples for org.joda.time.tz FixedDateTimeZone FixedDateTimeZone

Introduction

In this page you can find the example usage for org.joda.time.tz FixedDateTimeZone FixedDateTimeZone.

Prototype

public FixedDateTimeZone(String id, String nameKey, int wallOffset, int standardOffset) 

Source Link

Usage

From source file:org.jruby.RubyTime.java

License:LGPL

private static DateTimeZone timeZoneWithOffset(String zoneName, int offset) {
    if (zoneName.isEmpty()) {
        return DateTimeZone.forOffsetMillis(offset);
    } else {//w  ww.ja  v  a 2  s.  c om
        return new FixedDateTimeZone(zoneName, null, offset, offset);
    }
}