as400时间戳(yyyy-MM-dd-HH.mm.ssssss)是否可以不考虑设备时间格式来查询?
Can the as400 timestamp (yyyy-MM-dd-HH.mm.ssssss) be used for querying irrespective of the device time format?
机器的日期格式是yyyy/mm/ddHH:mm:ss
(yyyy-MM-dd-HH.mm.ssssss) 1988-12-25-17.12.30.000000 这是我输入的时间格式,这个时间格式可以用来查询historic_log_info table的日志吗?与机器中设置的日期格式无关。
示例查询 - SELECT * FROM TABLE(HISTORY_LOG_INFO( START_TIME => '2021-02-22-09.35.16.508075'))WHERE MESSAGE_ID IS NOT NULL
根据结束时间的描述,格式看起来是正确的:
start-time
A timestamp expression that indicates the starting timestamp to use when returning history log information.
If this parameter is omitted, the default of CURRENT DATE - 1 DAY is used.
end-time
A timestamp expression that indicates the ending timestamp to use when returning history log information.
If this parameter is omitted, the default of '9999-12-30-00.00.00.000000' is used.
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzajq/rzajqudfhistoryloginfo.htm
机器的日期格式是yyyy/mm/ddHH:mm:ss
(yyyy-MM-dd-HH.mm.ssssss) 1988-12-25-17.12.30.000000 这是我输入的时间格式,这个时间格式可以用来查询historic_log_info table的日志吗?与机器中设置的日期格式无关。
示例查询 - SELECT * FROM TABLE(HISTORY_LOG_INFO( START_TIME => '2021-02-22-09.35.16.508075'))WHERE MESSAGE_ID IS NOT NULL
根据结束时间的描述,格式看起来是正确的:
start-time
A timestamp expression that indicates the starting timestamp to use when returning history log information.
If this parameter is omitted, the default of CURRENT DATE - 1 DAY is used.
end-time
A timestamp expression that indicates the ending timestamp to use when returning history log information.
If this parameter is omitted, the default of '9999-12-30-00.00.00.000000' is used.
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzajq/rzajqudfhistoryloginfo.htm