private String encodeTemporal( final Temporal t1 ) { return formatDateTime( t1 ); }
/** * Returns optional additional human-readable text associated with the starting of the process execution. * * @return optional additional human-readable text, null if it is not available */ public String getStartMessage() { if ( startedMessage == null ) { return "Process execution started@" + ISO8601Converter.formatDateTime( new Date( startTime ) ); } return startedMessage; }
/** * Returns optional additional human-readable text associated with the successful finishing of the process * execution. * * @return optional additional human-readable text, null if it is not available */ public String getSucceededMessage() { if ( succeededMessage == null && finishTime >= 0 ) { return "Process execution succeeded@" + ISO8601Converter.formatDateTime( new Date( finishTime ) ); } return succeededMessage; }
private void exportSearchStatus202( XMLStreamWriter writer ) throws XMLStreamException { writer.writeStartElement( CSW_202_NS, "SearchStatus" ); writer.writeAttribute( "timestamp", ISO8601Converter.formatDateTime( new Date() ) ); // SearchStatus writer.writeEndElement(); }
protected String getTimestamp() { DateTime dateTime = getCurrentDateTimeWithoutMilliseconds(); return ISO8601Converter.formatDateTime( dateTime ); }
@Deprecated public static String formatDateTime( java.util.Date date ) { return formatDateTime( new DateTime( date, GMT ) ); }
DimensionInterval<?, ?, ?> iv = (DimensionInterval<?, ?, ?>) o; if ( time ) { sb.append( formatDateTime( (Date) iv.min ) ).append( "/" ); if ( iv.max instanceof Date ) { sb.append( formatDateTime( (Date) iv.max ) ).append( "/" ); } else { sb.append( "current/" ); sb.append( formatDateTime( (Temporal) o ) ); } else { sb.append( o );
private Date checkNearestValueTime( Date theVal, Dimension<?> time, List<String> headers ) { if ( time.getNearestValue() ) { Object nearest = time.getNearestValue( theVal ); if ( !nearest.equals( theVal ) ) { theVal = (Date) nearest; headers.add( "99 Nearest value used: time=" + formatDateTime( theVal ) + " " + time.getUnits() ); } } return theVal; }
private void checkTimeValidity( Dimension<?> time, Object o ) throws OWSException { if ( !time.getNearestValue() && !time.isValid( o ) ) { String msg = "The value " + ( o instanceof Date ? formatDateTime( (Date) o ) : o.toString() ) + " for dimension TIME was invalid."; throw new OWSException( msg, "InvalidDimensionValue", "time" ); } }
case DATE_TIME: if ( o instanceof DateTime ) { xml = "" + formatDateTime( (Temporal) o ); } else { LOG.warn( "Unhandled Date class " + o.getClass() + " -- converting via #toString()" );
rs.close(); String msg = getMessage( "LOCK_CANNOT_LOCK_ALL", fid, formatDateTime( new DateTime( expires2, null ) ), formatDateTime( new DateTime( acquired2, null ) ) ); throw new OWSException( msg, NO_APPLICABLE_CODE );
writer.writeAttribute( "timeStamp", ISO8601Converter.formatDateTime( new Date() ) ); writer.writeStartElement( CSW_202_NS, "EchoedRequest" ); readXMLFragment( getRec.getXMLRequest().toString(), writer );
if ( o instanceof DimensionInterval<?, ?, ?> ) { DimensionInterval<?, ?, ?> iv = (DimensionInterval<?, ?, ?>) o; final String min = formatDateTime( (Date) iv.min ); final String max = formatDateTime( (Date) iv.max ); os[i++] = new PropertyIsBetween( property, new Literal<PrimitiveValue>( min ), new Literal<PrimitiveValue>( max ), true, null ); Literal<PrimitiveValue> lit = new Literal<PrimitiveValue>( formatDateTime( theVal ) ); os[i++] = new PropertyIsEqualTo( property, lit, true, null );
writer.writeAttribute( "creationTime", ISO8601Converter.formatDateTime( new Date( creationTime ) ) );
final String min; if ( iv.min instanceof Date ) { min = formatDateTime( (Date) iv.min ); } else { min = ( (Number) iv.min ).toString(); max = formatDateTime( (Date) iv.max ); } else if ( iv.max instanceof String ) { max = formatDateTime( new Date() ); } else { max = ( (Number) iv.max ).toString();
xmlStream.writeStartElement( "wfs", "member", WFS_200_NS ); xmlStream.writeEmptyElement( "wfs", "FeatureCollection", WFS_200_NS ); xmlStream.writeAttribute( "timeStamp", formatDateTime( hits.queryTimeStamps[j] ) ); xmlStream.writeAttribute( "numberMatched", "" + hits.queryHits[j] ); xmlStream.writeAttribute( "numberReturned", "0" );
+ ISO8601Converter.formatDateTime( new Date( System.currentTimeMillis() ) ) ); } catch ( ProcessletException e ) { OWSException oe = null;
ir.addPreparedArgument( new SQLIdentifier( "value" ), ISO8601Converter.formatDateTime( new Date() ) ); ir.performInsert( conn );
writer.writeAttribute( "numberOfRecordsReturned", Integer.toString( returnedRecords ) ); writer.writeAttribute( "nextRecord", Integer.toString( nextRecord ) ); writer.writeAttribute( "expires", ISO8601Converter.formatDateTime( new Date() ) ); writer.writeAttribute( "numberOfRecordsReturned", Integer.toString( records.size() ) ); writer.writeAttribute( "nextRecord", Integer.toString( nextRecord ) ); writer.writeAttribute( "expires", ISO8601Converter.formatDateTime( new Date() ) ); for ( MetadataRecord record : records ) { writeRecord( writer, record, outputSchema, elementSetName, returnElements );