Codota Logo
Date.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • BoxLayout (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