private String convertFormat ( long watermark ) { Preconditions . checkArgument ( watermark > 0 , "Watermark should be positive number." ) ; return googleAnalyticsFormatter . print ( watermarkFormatter . parseDateTime ( Long . toString ( watermark ) ) ) ; }
Converts date format from watermark format to Google analytics format