Last active
December 25, 2015 05:49
-
-
Save happydeveloper/6927733 to your computer and use it in GitHub Desktop.
#우리말 : 시간포맷을 일반시간형태에서 유닉스값으로 변경하는 법
#Convert date time string is in the following format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Convert date time string is in the following format 06/12/2012 07:21:22. How can I conver it to UNIX timestamp? | |
#우리말 : 시간포맷을 일반시간형태에서 유닉스값으로 변경하는 법 | |
#What you're looking for is date --date='06/12/2012 07:21:22' +"%s". | |
#당신으 찾는 날짜는 셀에서 다음과 같이 실행하면 됨 | |
date --date='06/12/2012 07:21:22' +"%s" | |
#$ date --date='11/10/2013 07:21:22' +"%s" | |
#결과값 : 1384068082 | |
#reference | |
#http://stackoverflow.com/questions/10990949/convert-date-time-string-to-unix-timestamp-in-bash-command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment