首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
rust 获取10位时间戳
rust 获取10位时间戳
it
2023-06-09
76
rust 获取10位时间戳
///在Cargo.toml的dependencies中添加依赖:
[
dependencies
]
time
=
"0.1.41"
use time
;
let time
=
time
::
get_time
(
)
;
println
!
(
"{}"
,
format
!
(
"{:#?}"
,
time
.
sec
)
)
;
/// 输出格式:1603183186
转载请注明原文地址: https://lol.8miu.com/read-5581.html
最新回复
(
0
)