UG NX 二次开发源码: 获取系统当前日期和时间uc4583
使用uc4583 可以获取当前时间:
uc4583(“”,“”,time)
extern UFUNEXPORT int uc4583(
const char * date ,/* <I>
Date in any of the following forms
MM/DD/YY
DD-MMM-YY
DDMMMYY
MM/DD/YYYY
DD-MMM-YYYY
DDMMMYYYY
If date is blank, the current date is used
*/
const char * time ,/* <I>
Time in either of the following forms
HH:MM
HH:MM xM (x = 'A' or 'P')
If time is blank, the current time is used
*/
int* dandt/* <O>
Date And Time
(1) = Computational Date
(2) = Computational Time
*/
);
页:
[1]