I am taking a screenshot on my android app using this code:
Long tsLong = System.currentTimeMillis()/1000; final String ts = tsLong.toS