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

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

Best Java code snippets using org.postgresql.jdbc2.TimestampUtils.toTimestamp (Showing top 12 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 Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException
{
  checkClosed();
  checkIndex(i, Types.TIMESTAMP, "Timestamp");
  if (callResult[i-1] == null)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  String value = callResult[i-1].toString();
  return connection.getTimestampUtils().toTimestamp(cal, value);
}
origin: postgresql/postgresql

public Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException
{
  checkResultSet(i);
  if (wasNullFlag)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  // If this is actually a timestamptz, the server-provided timezone will override
  // the one we pass in, which is the desired behaviour. Otherwise, we'll
  // interpret the timezone-less value in the provided timezone.
  return connection.getTimestampUtils().toTimestamp(cal, getString(i));
}
origin: postgresql/postgresql

  tmpts = new java.sql.Timestamp(((java.util.Date)in).getTime());
} else {
  tmpts = connection.getTimestampUtils().toTimestamp(null, in.toString());
origin: postgresql/postgresql

oa[length++] = dims > 1 && v != null ? buildArray((PgArrayList) v, 0, -1) : (v == null ? null : connection.getTimestampUtils().toTimestamp(null, (String) v));
origin: org.ancoron.postgresql/org.postgresql

public Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException
{
  checkClosed();
  checkIndex(i, Types.TIMESTAMP, "Timestamp");
  if (callResult[i-1] == null)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  String value = callResult[i-1].toString();
  return connection.getTimestampUtils().toTimestamp(cal, value);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException
{
  checkClosed();
  checkIndex(i, Types.TIMESTAMP, "Timestamp");
  if (callResult[i-1] == null)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  String value = callResult[i-1].toString();
  return connection.getTimestampUtils().toTimestamp(cal, value);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

public Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException
{
  checkResultSet(i);
  if (wasNullFlag)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  // If this is actually a timestamptz, the server-provided timezone will override
  // the one we pass in, which is the desired behaviour. Otherwise, we'll
  // interpret the timezone-less value in the provided timezone.
  return connection.getTimestampUtils().toTimestamp(cal, getString(i));
}
origin: org.ancoron.postgresql/org.postgresql

public Timestamp getTimestamp(int i, java.util.Calendar cal) throws SQLException
{
  checkResultSet(i);
  if (wasNullFlag)
    return null;
  if (cal != null)
    cal = (Calendar)cal.clone();
  // If this is actually a timestamptz, the server-provided timezone will override
  // the one we pass in, which is the desired behaviour. Otherwise, we'll
  // interpret the timezone-less value in the provided timezone.
  return connection.getTimestampUtils().toTimestamp(cal, getString(i));
}
origin: org.ancoron.postgresql/org.postgresql.osgi

  tmpts = new java.sql.Timestamp(((java.util.Date)in).getTime());
} else {
  tmpts = connection.getTimestampUtils().toTimestamp(null, in.toString());
origin: org.ancoron.postgresql/org.postgresql

  tmpts = new java.sql.Timestamp(((java.util.Date)in).getTime());
} else {
  tmpts = connection.getTimestampUtils().toTimestamp(null, in.toString());
origin: org.ancoron.postgresql/org.postgresql.osgi

oa[length++] = dims > 1 && v != null ? buildArray((PgArrayList) v, 0, -1) : (v == null ? null : connection.getTimestampUtils().toTimestamp(null, (String) v));
origin: org.ancoron.postgresql/org.postgresql

oa[length++] = dims > 1 && v != null ? buildArray((PgArrayList) v, 0, -1) : (v == null ? null : connection.getTimestampUtils().toTimestamp(null, (String) v));
org.postgresql.jdbc2TimestampUtilstoTimestamp

Javadoc

Parse a string and return a timestamp representing its value.

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
  • showString
  • showParse,
  • showString,
  • skipWhitespace,
  • toDate,
  • toString,
  • toTime

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Table (org.hibernate.mapping)
    A relational table
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