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