Class TimeZoneConverter

java.lang.Object
org.jruby.util.TimeZoneConverter

public class TimeZoneConverter extends Object
This is utility class to convert given timezone into integer based timezone diff. It's ported from ext/date/date_parse.c in MRI 2.3.1 under BSDL.
  • Field Details

  • Constructor Details

    • TimeZoneConverter

      private TimeZoneConverter()
  • Method Details

    • getOffsetFromZonesSource

      private static int getOffsetFromZonesSource(String z)
    • dateZoneToDiff

      public static int dateZoneToDiff(String zone)
      Ports date_zone_to_diff from ext/date/date_parse.c in MRI 2.3.1 under BSDL.