CMSV6Help Center
/
839 DOCS · 213 VIDEOS中文

TTX Device Sync Server Time

Author 谢周轩Updated 2025-10-16 11:28:40Doc ID 2374105 words · 1 min readView original ↗

Function description

  • TTX protocol device synchronization server time

Operating instructions

1. Invoke synchronous time interface

  • @ Sync time (only valid once)
  • The time obtained from the server will be returned through the SyncTime interface
    LIBDVRNET_API int TTXNET_SetSyncTime();
    (When to synchronize time, call this interface)

2. overload time synchronization interface

// Synchronize time (synchronize time with the server). The device needs to update the local time according to its own time zone.
// The parameter is UTC, which is Greenwich Mean Time and Global Standard Time. After each successful login, the time adjustment operation will be performed.
virtual void SyncTime(struct tm& utcTime) {}

Correcting system time

Source help.cmsv7.com
839 documents · 213 videos · docs.alwaycare.com