congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FastTimeZone.parseInt
Code IndexAdd Tabnine to your IDE (free)

How to use
parseInt
method
in
org.apache.commons.lang3.time.FastTimeZone

Best Java code snippets using org.apache.commons.lang3.time.FastTimeZone.parseInt (Showing top 4 results out of 315)

origin: org.apache.commons/commons-lang3

/**
 * Gets a TimeZone with GMT offsets.  A GMT offset must be either 'Z', or 'UTC', or match
 * <em>(GMT)? hh?(:?mm?)?</em>, where h and m are digits representing hours and minutes.
 *
 * @param pattern The GMT offset
 * @return A TimeZone with offset from GMT or null, if pattern does not match.
 */
public static TimeZone getGmtTimeZone(final String pattern) {
  if ("Z".equals(pattern) || "UTC".equals(pattern)) {
    return GREENWICH;
  }
  final Matcher m = GMT_PATTERN.matcher(pattern);
  if (m.matches()) {
    final int hours = parseInt(m.group(2));
    final int minutes = parseInt(m.group(4));
    if (hours == 0 && minutes == 0) {
      return GREENWICH;
    }
    return new GmtTimeZone(parseSign(m.group(1)), hours, minutes);
  }
  return null;
}
origin: io.virtdata/virtdata-lib-realer

/**
 * Gets a TimeZone with GMT offsets.  A GMT offset must be either 'Z', or 'UTC', or match
 * <em>(GMT)? hh?(:?mm?)?</em>, where h and m are digits representing hours and minutes.
 *
 * @param pattern The GMT offset
 * @return A TimeZone with offset from GMT or null, if pattern does not match.
 */
public static TimeZone getGmtTimeZone(final String pattern) {
  if ("Z".equals(pattern) || "UTC".equals(pattern)) {
    return GREENWICH;
  }
  final Matcher m = GMT_PATTERN.matcher(pattern);
  if (m.matches()) {
    final int hours = parseInt(m.group(2));
    final int minutes = parseInt(m.group(4));
    if (hours == 0 && minutes == 0) {
      return GREENWICH;
    }
    return new GmtTimeZone(parseSign(m.group(1)), hours, minutes);
  }
  return null;
}
origin: de.knightsoft-net/gwt-commons-lang3

/**
 * Gets a TimeZone with GMT offsets.  A GMT offset must be either 'Z', or 'UTC', or match
 * <em>(GMT)? hh?(:?mm?)?</em>, where h and m are digits representing hours and minutes.
 *
 * @param pattern The GMT offset
 * @return A TimeZone with offset from GMT or null, if pattern does not match.
 */
public static TimeZone getGmtTimeZone(final String pattern) {
  if ("Z".equals(pattern) || "UTC".equals(pattern)) {
    return GREENWICH;
  }
  final Matcher m = GMT_PATTERN.matcher(pattern);
  if (m.matches()) {
    final int hours = parseInt(m.group(2));
    final int minutes = parseInt(m.group(4));
    if (hours == 0 && minutes == 0) {
      return GREENWICH;
    }
    return new GmtTimeZone(parseSign(m.group(1)), hours, minutes);
  }
  return null;
}
origin: io.virtdata/virtdata-lib-curves4

/**
 * Gets a TimeZone with GMT offsets.  A GMT offset must be either 'Z', or 'UTC', or match
 * <em>(GMT)? hh?(:?mm?)?</em>, where h and m are digits representing hours and minutes.
 *
 * @param pattern The GMT offset
 * @return A TimeZone with offset from GMT or null, if pattern does not match.
 */
public static TimeZone getGmtTimeZone(final String pattern) {
  if ("Z".equals(pattern) || "UTC".equals(pattern)) {
    return GREENWICH;
  }
  final Matcher m = GMT_PATTERN.matcher(pattern);
  if (m.matches()) {
    final int hours = parseInt(m.group(2));
    final int minutes = parseInt(m.group(4));
    if (hours == 0 && minutes == 0) {
      return GREENWICH;
    }
    return new GmtTimeZone(parseSign(m.group(1)), hours, minutes);
  }
  return null;
}
org.apache.commons.lang3.timeFastTimeZoneparseInt

Popular methods of FastTimeZone

  • getGmtTimeZone
    Gets a TimeZone with GMT offsets. A GMT offset must be either 'Z', or 'UTC', or match(GMT)? hh?(:?mm
  • parseSign
  • getTimeZone
    Gets a TimeZone, looking first for GMT custom ids, then falling back to Olson ids. A GMT custom id c

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Notification (javax.management)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now