congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Date.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.deegree.commons.tom.datetime.Date.<init> (Showing top 5 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

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<init>

Javadoc

Creates a new Date instance.

Popular methods of Date

  • getTimeInMilliseconds
  • getCalendar

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Join (org.hibernate.mapping)
  • Best plugins for Eclipse
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