Created
October 4, 2012 23:47
-
-
Save tkmtmkt/3837177 to your computer and use it in GitHub Desktop.
エポック秒の計算
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
(date "2012/10/04 22:00").Subtract((date "1970/01/01 09:00")).TotalSeconds | |
((date "2012/10/04 22:00") - (date "1970/01/01 09:00")).TotalSeconds | |
date (date "2012/10/04 22:00").ToUniversalTime() -u "%s" | |
date (date "2012/10/04 22:00").AddHours(-9) -u "%s" | |
(date "2012/10/04 22:00" -u "%s") - 9*60*60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment