encodeTime method
Encodes a DateTime object into a ZKTeco timestamp integer. (Internal use only)
Implementation
int encodeTime(DateTime t) {
return (((t.year % 100) * 12 * 31 + ((t.month - 1) * 31) + t.day - 1) *
(24 * 60 * 60) +
(t.hour * 60 + t.minute) * 60 +
t.second);
}