public static long getTimestampMinusParameters ( long targetTimestamp , int numOfWeeks , int numOfDays , int numOfHours , int numOfMinutes , int numOfSeconds ) { long sumOfParameters = numOfWeeks * aWeek + numOfDays * aDay + numOfHours * anHour + numOfMinutes * aMinute + numOfSeconds * aSecond ; return targetTimestamp - sumOfParameters ; }
Gets timestamp minus parameters .