us.bpsm.edn.parser.InstantToTimestamp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edn-java Show documentation
Show all versions of edn-java Show documentation
edn-java is an parser and printer for 'edn' written in Java, for Java and
requiring no external dependencies.
// (c) 2012 B Smith-Mannschott -- Distributed under the Eclipse Public License
package us.bpsm.edn.parser;
/**
* A Handler for {@code #inst} which translates the intant into a
* {@link java.sql.TimeStamp}.
*/
public class InstantToTimestamp extends AbstractInstantHandler {
@Override
protected Object transform(ParsedInstant pi) {
return InstantUtils.makeTimestamp(pi);
}
}