摄像头时区(Camera time zone)

如果设备使用时区发生改变,可手动设置摄像头时区,保证设备时间正确,设备时区分为:(If the device time zone changes, you can manually set the camera time zone to ensure that the device time is correct. The device time is divided into:)

UTC-11、UTC-10、UTC-9、UTC-8、UTC-7、UTC-6、UTC-5、UTC-4、UTC-3.5、UTC-3、UTC-2、UTC-1、UTC+0、UTC+1、UTC+2、UTC+3、UTC+3.5、UTC+4、UTC+4.5、UTC+5、UTC+5.5、UTC+6、UTC+6.5、UTC+7、UTC+8、UTC+9、UTC+9.5、UTC+10、UTC+11、UTC+12

获取设备时区(Get device time zone)

从app缓存中拿到 KHJDeviceManager 类的对象:(Get objects of class KHJDeviceManager from the app cache:)

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
  [bDevice.mDeviceManager getTimeZone:^(int success) {

  }];
}
或者(or)
// 获取设备时区(Get device time zone)
KHJDeviceManager *manager = [[KHJDeviceManager alloc] init];
[manager createKHJCameraBase:Uid];
[manager getTimeZone:^(int success) {

}];

getTimeZone 获取时区 success 取值范围在:(getTimeZone Get time zone success The value range is:)

-660、-600、-540、-480、-420、-360、-300、-240、-210、-180、-120、-60、0、60、120、180、210、240、270、300、330、360、420、480、540、600、660、720

以上取值,与设备时区顺序对照。(The above values are compared with the device time zone sequence.)

设置设备时区(Set device time zone)

// 设置设备时区(Set device time zone)
KHJDeviceManager *manager = [[KHJDeviceManager alloc] init];
[manager createKHJCameraBase:Uid];
[manager setTimezone:timeZone returnBlock:^(BOOL success) {

}];

timeZone 范围在: [-660, 720]timeZone ranges from: [-660, 720]