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

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

Best Java code snippets using org.postgresql.jdbc2.TimestampUtils.appendTime (Showing top 6 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, 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

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.jdbc2TimestampUtilsappendTime

Popular methods of TimestampUtils

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

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • startActivity (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JCheckBox (javax.swing)
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