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

SQL Anywhere 11.0.1 (中文) » QAnywhere » QAnywhere 参考 » QAnywhere C++ API 参考 » QAMessage 类

 

getTimestampAsString 函数

语法
qa_int QAMessage::getTimestampAsString(
  qa_string buffer,
  qa_int bufferLen
)
参数
  • buffer   用于已设置格式的时间戳的缓冲区。

  • bufferLen   缓冲区大小。

注释

按已设置格式的字符串形式获取消息时间戳。

格式如下:"dow, MMM dd, yyyy hh:mm:ss.nnn GMT"。

有关获取和设置消息标头和属性的详细信息,请参见QAnywhere 消息简介

返回值

写入到缓冲区的非空 qa_char 的数量。