标题: Select current time ...想返回毫秒??? [打印本页] 作者: leojing 时间: 2004-12-17 16:27 标题: Select current time ...想返回毫秒??? 环境odbc+db2(AS/400)
高手们????Select current time ...或其它方法想要毫秒,有没有那位大侠有办法!!!作者: leojing 时间: 2004-12-17 17:21 标题: Select current time ...想返回毫秒??? 在client access中用select current timestamp from ...能返回毫秒,应该是ODBC的问题,不知各位有没有用过?作者: qingzhou 时间: 2004-12-21 10:43 标题: Select current time ...想返回毫秒??? 可以通过RPGIV程序来获取,在RPGIV是有个TimeStamp这个时间函数来处理“毫秒”。
例如:以下是取当前的毫秒时间的简单的RPGIV例子。
D LoanDate S D DatFmt(*ISO)
D TimeStamp S Z
D MSecond S 6 0
/FREE
MSecond = %SubDt(TimeStamp : *MS);
*inLR = *ON ;
/END-FREE
// %SubDt是系统BIF,其功能类似于“取子串”。 //
// 在Date and Time Durations中,*YEARS → *Y ...*SECONDS → //
// *S , *MSECONDS → *MS //
复制代码
作者: qingzhou 时间: 2004-12-21 11:03 标题: Select current time ...想返回毫秒??? 既然已经涉及到TimeStamp这个时间函数,我想顺带补充加深说明如下: