// get time in milliseconds since 1970 Jan 1
long timestamp = System.currentTimeMillis();