c语言 strptime函数
2021-02-26, updated 2021-09-12
读取将格式化时间
原型
|
|
参数
- s: 需要获取的时间字符串
- tm: 存放时间的变量
- format: 描述文件格式
- %d: The day of month (1-31).
- %H: The hour (0-23).
- %m: The month number (1-12).
- %M: The minute (0-59).
- %S: The second (0-60; 60 may occur for leap seconds; earlier also 61 was allowed).
- %Y: The year, including century (for example, 1991).
相关结构体
|
|
|
|