MongoDB/存储时间:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第93行: 第93行:


shell
shell
{{shc|<syntaxhighlight lang="shell">
<syntaxhighlight lang="shell">
curr_dt='2019-02-25'
curr_dt='2019-02-25'
curr_ts='$(printf '%x' $(date -d "$curr_dt" +%s))'
curr_ts='$(printf '%x' $(date -d "$curr_dt" +%s))'
curr_oid=$(printf '%-24s' ${curr_ts} |sed 's/ /0/g')</syntaxhighlight>}}
curr_oid=$(printf '%-24s' ${curr_ts} |sed 's/ /0/g')</syntaxhighlight>


python
python