함수 epochdate2date()

함수 epochdate2date()

1 Bash[편집]

date +%Y-%m-%d -d "1970-01-01 + 0 day"
# 1970-01-01
date +%Y-%m-%d -d "1970-01-01 + 11323 day"
# 2001-01-01
date +%Y-%m-%d -d "1970-01-01 + 20000 day"
# 2024-10-04
date +%Y-%m-%d -d @$((86400*0))
# 1970-01-01
date +%Y-%m-%d -d @$((86400*11323))
# 2001-01-01
date +%Y-%m-%d -d @$((86400*20000))
# 2024-10-04

2 같이 보기[편집]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}