Date created = ((EXistResource)resource).getCreationTime(); return new DateTimeValue(created.getTime());
if("last-modified".equals(getSignature().getName().getLocalName())) date = ((EXistResource)resource).getLastModificationTime(); else date = ((EXistResource)resource).getCreationTime();
	public Sequence evalWithCollection(Collection collection, Sequence[] args, Sequence contextSequence)		throws XPathException {		try {			if(getSignature().getArgumentCount() == 1) {                Date created = ((CollectionImpl)collection).getCreationTime();                return new DateTimeValue(created.getTime());			} else {                Resource resource = collection.getResource(args[1].getStringValue());                Date created = ((EXistResource)resource).getCreationTime();                return new DateTimeValue(created.getTime());            }		} catch(XMLDBException e) {			throw new XPathException(getASTNode(), "Failed to retrieve creation date: " + e.getMessage(), e);		}	}