public static String getTimestamp ( boolean withMsec ) { return ( withMsec ? SafeDateFormatter . getDateFormat ( PATTERN_MSEC ) . format ( new Date ( ) ) : SafeDateFormatter . getDateFormat ( PATTERN ) . format ( new Date ( ) ) ) ; }
Get a ISO8601formatted string for the current date and time .