Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere 嵌入式 SQL » 库函数参考

 

db_time_change 函数

原型
unsigned int db_time_change(
SQLCA * sqlca);
说明

sqlca   指向 SQLCA 结构的指针。有关信息,请参见SQL 通信区域 (SQLCA)

此函数允许客户端通知服务器客户端上的时间已发生更改。此函数将重新计算时区调整并将其发送给服务器。在 Windows 平台上,建议应用程序在接收到 WM_TIMECHANGE 消息时调用此函数。这样可确保 UTC 时间戳与时间更改、时区更改或夏令时更改保持一致。

如果成功则返回 TRUE,否则返回 FALSE。