congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Date
Code IndexAdd Tabnine to your IDE (free)

How to use
Date
in
org.deegree.commons.tom.datetime

Best Java code snippets using org.deegree.commons.tom.datetime.Date (Showing top 8 results out of 315)

origin: deegree/deegree3

@Override
public Date toTimeZone( TimeZone tz ) {
  Calendar cal = null;
  if ( tz == null ) {
    cal = getInstance();
  } else {
    cal = getInstance( tz );
  }
  cal.setTimeInMillis( this.cal.getTimeInMillis() );
  return new Date( cal, tz == null );
}
origin: deegree/deegree3

case TIME:
  stmt.setDate( idx, new java.sql.Date( ( (Date) primVal.getValue() ).getTimeInMilliseconds() ) );
  break;
case DECIMAL:
origin: deegree/deegree3

private void writeSummaryElements( XMLStreamWriter writer )
            throws XMLStreamException {
  for ( String s : getSubject() ) {
    write( writer, "subject", s, dc );
  }
  for ( String f : getFormat() ) {
    write( writer, "format", f, dc );
  }
  for ( String r : getRelation() ) {
    write( writer, "relation", r, dc );
  }
  if ( getModified() != null ) {
    write( writer, "modified", getModified().getCalendar().getTime().toString(), dct );
  }
  for ( String a : getAbstract() ) {
    write( writer, "abstract", a, dct );
  }
}
origin: deegree/deegree3

Timestamp modified = null;
if ( rec.getModified() != null ) {
  modified = new Timestamp( rec.getModified().getTimeInMilliseconds() );
Timestamp revDate = null;
if ( qp.getRevisionDate() != null ) {
  revDate = new Timestamp( qp.getRevisionDate().getTimeInMilliseconds() );
  createDate = new Timestamp( qp.getCreationDate().getTimeInMilliseconds() );
  pubDate = new Timestamp( qp.getPublicationDate().getTimeInMilliseconds() );
Timestamp begTmpExten = null;
if ( qp.getTemporalExtentBegin() != null ) {
  begTmpExten = new Timestamp( qp.getTemporalExtentBegin().getTimeInMilliseconds() );
  endTmpExten = new Timestamp( qp.getTemporalExtentEnd().getTimeInMilliseconds() );
Timestamp specDate = null;
if ( qp.getSpecificationDate() != null ) {
  specDate = new Timestamp( qp.getSpecificationDate().getTimeInMilliseconds() );
origin: deegree/deegree3

protected PrimitiveValue toDateParticle( Object sqlValue ) {
  Temporal value = null;
  if ( sqlValue instanceof java.util.Date ) {
    Calendar cal = Calendar.getInstance();
    cal.setTime( (java.util.Date) sqlValue );
    value = new Date( cal, true );
  } else if ( sqlValue != null ) {
    throw new IllegalArgumentException( "Unable to convert SQL result value of type '" + sqlValue.getClass()
                      + "' to Date particle." );
  }
  return new PrimitiveValue( value, pt );
}
origin: deegree/deegree3

@Deprecated
public static String formatDate( final java.util.Date date ) {
  return formatDate( new org.deegree.commons.tom.datetime.Date( date, GMT ) );
}
origin: deegree/deegree3

/**
 * Parses the given <code>xs:date</code> string.
 * 
 * @param xsDate
 *            the <code>xs:date</code> to be parsed, must not be <code>null</code>
 * @return the parsed date, never <code>null</code> (available timezone information is kept)
 * @throws IllegalArgumentException
 *             if parameter does not conform to lexical value space defined in XML Schema Part 2: Datatypes for
 *             <code>xs:date</code>
 */
public static Date parseDate( final String xsDate )
            throws IllegalArgumentException {
  Calendar cal = DatatypeConverter.parseDate( xsDate );
  boolean isTimeZoneUnknown = isLocal( xsDate );
  return new org.deegree.commons.tom.datetime.Date( cal, isTimeZoneUnknown );
}
origin: deegree/deegree3

Calendar cal = new GregorianCalendar( year, month, day );
PrimitiveType pt = field.propertyType.getPrimitiveType();
PrimitiveValue pv = new PrimitiveValue( new Date( cal, true ), pt );
property = new SimpleProperty( field.propertyType, pv );
break;
PrimitiveValue pv = new PrimitiveValue( new Date( cal, true ), pt );
property = new SimpleProperty( field.propertyType, pv );
break;
org.deegree.commons.tom.datetimeDate

Javadoc

Temporal for representing dates (e.g. xs:date values).

Most used methods

  • <init>
    Creates a new Date instance.
  • getTimeInMilliseconds
  • getCalendar

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • putExtra (Intent)
  • String (java.lang)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Table (org.hibernate.mapping)
    A relational table
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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