Codota Logo
TimestampUtils.showString
Code IndexAdd Codota to your IDE (free)

How to use
showString
method
in
org.postgresql.jdbc2.TimestampUtils

Best Java code snippets using org.postgresql.jdbc2.TimestampUtils.showString (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

public synchronized String toString(Calendar cal, Time x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  appendTime(sbuf, cal, cal.get(Calendar.MILLISECOND) * 1000000);
  // The 'time' parser for <= 7.3 doesn't like timezones.
  if (min74)
    appendTimeZone(sbuf, cal);
  
  showString("time", cal, x, sbuf.toString());
  
  return sbuf.toString();
}
origin: postgresql/postgresql

public synchronized String toString(Calendar cal, Date x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) {
    sbuf.append("infinity");
  } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) {
    sbuf.append("-infinity");
  } else {
    appendDate(sbuf, cal);
    appendEra(sbuf, cal);
    appendTimeZone(sbuf, cal);
  }
  
  showString("date", cal, x, sbuf.toString());
  
  return sbuf.toString();
}
origin: postgresql/postgresql

public synchronized String toString(Calendar cal, Timestamp x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) {
    sbuf.append("infinity");
  } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) {
    sbuf.append("-infinity");
  } else {
    appendDate(sbuf, cal);
    sbuf.append(' ');
    appendTime(sbuf, cal, x.getNanos());
    appendTimeZone(sbuf, cal);
    appendEra(sbuf, cal);
  }
  
  showString("timestamp", cal, x, sbuf.toString());        
  return sbuf.toString();
}
origin: org.ancoron.postgresql/org.postgresql

public synchronized String toString(Calendar cal, Time x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  appendTime(sbuf, cal, cal.get(Calendar.MILLISECOND) * 1000000);
  // The 'time' parser for <= 7.3 doesn't like timezones.
  if (min74)
    appendTimeZone(sbuf, cal);
  
  showString("time", cal, x, sbuf.toString());
  
  return sbuf.toString();
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized String toString(Calendar cal, Time x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  appendTime(sbuf, cal, cal.get(Calendar.MILLISECOND) * 1000000);
  // The 'time' parser for <= 7.3 doesn't like timezones.
  if (min74)
    appendTimeZone(sbuf, cal);
  
  showString("time", cal, x, sbuf.toString());
  
  return sbuf.toString();
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized String toString(Calendar cal, Date x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) {
    sbuf.append("infinity");
  } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) {
    sbuf.append("-infinity");
  } else {
    appendDate(sbuf, cal);
    appendEra(sbuf, cal);
    appendTimeZone(sbuf, cal);
  }
  
  showString("date", cal, x, sbuf.toString());
  
  return sbuf.toString();
}
origin: org.ancoron.postgresql/org.postgresql

public synchronized String toString(Calendar cal, Date x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) {
    sbuf.append("infinity");
  } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) {
    sbuf.append("-infinity");
  } else {
    appendDate(sbuf, cal);
    appendEra(sbuf, cal);
    appendTimeZone(sbuf, cal);
  }
  
  showString("date", cal, x, sbuf.toString());
  
  return sbuf.toString();
}
origin: org.ancoron.postgresql/org.postgresql

public synchronized String toString(Calendar cal, Timestamp x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) {
    sbuf.append("infinity");
  } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) {
    sbuf.append("-infinity");
  } else {
    appendDate(sbuf, cal);
    sbuf.append(' ');
    appendTime(sbuf, cal, x.getNanos());
    appendTimeZone(sbuf, cal);
    appendEra(sbuf, cal);
  }
  
  showString("timestamp", cal, x, sbuf.toString());        
  return sbuf.toString();
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized String toString(Calendar cal, Timestamp x) {
  if (cal == null)
    cal = defaultCal;
  cal.setTime(x);
  sbuf.setLength(0);
  
  if (x.getTime() == PGStatement.DATE_POSITIVE_INFINITY) {
    sbuf.append("infinity");
  } else if (x.getTime() == PGStatement.DATE_NEGATIVE_INFINITY) {
    sbuf.append("-infinity");
  } else {
    appendDate(sbuf, cal);
    sbuf.append(' ');
    appendTime(sbuf, cal, x.getNanos());
    appendTimeZone(sbuf, cal);
    appendEra(sbuf, cal);
  }
  
  showString("timestamp", cal, x, sbuf.toString());        
  return sbuf.toString();
}
org.postgresql.jdbc2TimestampUtilsshowString

Popular methods of TimestampUtils

  • <init>
  • appendDate
  • appendEra
  • appendTime
  • appendTimeZone
  • charAt
  • firstNonDigit
  • getCalendar
  • loadCalendar
    Load date/time information into the provided calendar returning the fractional seconds.
  • number
  • showParse
  • skipWhitespace
  • showParse,
  • skipWhitespace,
  • toDate,
  • toString,
  • toTime,
  • toTimestamp

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now