question: public static long toUnixTime ( Calendar timestamp ) { return timestamp . getTimeInMillis ( ) / 1000L ; }
target:  Convert from a Java Calendar instance into a Unix Time stamp. Java Calendar instances contain timezone information. This will be lost in the conversion and no attempt will be made to reconcile the local timezone with the timezone information in the Calendar.