public static String toSQLString ( Long position ) { java . util . Date date = AbsoluteTimeGranularityUtil . asDate ( position ) ; return new Timestamp ( date . getTime ( ) ) . toString ( ) ; }
Convenience method to translate a timestamp into the format expected by SQL .