Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
获取消息时间戳。
public virtual qa_long getTimestamp()
消息时间戳。
此 Timestamp 标头字段包含消息的创建时间。时间为协调通用时间 (UTC)。
它不是消息实际传输的时间,因为事务或其它客户端消息排队可能导致实际发送推迟。它的单位符合平台要求。对于 Windows/PocketPC 平台,时间戳为 SYSTEMTIME,将被转换为 FILETIME 并复制到 qa_long 值中。
要将时间戳 ts 转换为 SYSTEMTIME 以对用户进行显示,请运行以下代码:
SYSTEMTIME stime; FILETIME ftime; ULARGE_INTEGER time; time.QuadPart = ts; memcpy(&ftime, &time, sizeof(FILETIME)); FileTimeToSystemTime(&ftime, &stime);
有关获取和设置消息标头和属性的详细信息,请参见QAnywhere 消息。