Skip to content

Instantly share code, notes, and snippets.

@tkmtmkt
Created October 4, 2012 23:47
Show Gist options
  • Save tkmtmkt/3837177 to your computer and use it in GitHub Desktop.
Save tkmtmkt/3837177 to your computer and use it in GitHub Desktop.
エポック秒の計算
(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