public static long getTimestampValue ( Node node ) throws CloudException { SimpleDateFormat fmt = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" ) ; fmt . setTimeZone ( TimeZone . getTimeZone ( "UTC" ) ) ; String value = getTextValue ( node ) ; try { return fmt . parse ( value ) . getTime ( ) ; } catch ( ParseException e ) { logger . error ( e ) ; e . printStackTrace ( ) ; throw new CloudException ( e ) ; } }
Gets the epoch form of the text value of the provided node .