localtime、localtime_s、localtime_r
csdn localtime、localtime_s、localtime_r的使用
(1)localtime用来获取系统时间,精度为秒
(2)localtime_r也是用来获取系统时间,运行于linux平台下
(3)localtime_s也是用来获取系统时间,运行于windows平台下,与localtime_r只有参数顺序不一样
localtime、localtime_s、localtime_r(1)localtime用来获取系统时间,精度为秒
(2)localtime_r也是用来获取系统时间,运行于linux平台下
(3)localtime_s也是用来获取系统时间,运行于windows平台下,与localtime_r只有参数顺序不一样