question: private String timestamp ( ) { String timestamp = null ; Calendar cal = Calendar . getInstance ( ) ; DateFormat dfm = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss'Z'" ) ; dfm . setTimeZone ( TimeZone . getTimeZone ( "GMT" ) ) ; timestamp = dfm . format ( cal . getTime ( ) ) ; return timestamp ; }
target:  Generate a ISO-8601 format timestamp as required by Amazon.