For travellers from Google, in this case the device sends an 8 byte SNMP DateAndTime value without timezone information. Check the manual I've linked below. However, obtaining the timezone information follows the same principles.
Your code should look like this:
// Prepare test data
$binstring = "\x07\xB2\x01\x01\x00\x0A\x14\x00";
$values = unpack('nyear/Cmonth/Cday/Chour/Cminute/Csecond/Cdecisecond', $binstring);
var_dump($values);
Output:
array(7) {
'year' =>
int(1970)
'month' =>
int(1)
'day' =>
int(1)
'hour' =>
int(0)
'minute' =>
int(10)
'second' =>
int(20)
'decisecond' =>
int(0)
}
Please refer to the following manual pages: