LoginSignup
0
0

More than 5 years have passed since last update.

GoogleSpreadSheetでunixtimestampを出す方法@日本

Last updated at Posted at 2015-03-06

メモ書きです。

GoogleSpreadSheetでUNIXTIMEを出す関数がなかったっぽいので
無理やり書きました。

2015年3月6日21時10分@日本だとすると以下のような書き方。
=(DATEDIF(DATE(1970,1,1), INDEX(DATE(2015, 3,6), "D") * 60 * 60 * 24 + HOUR(21) * 60 * 60 + MINUTE(10) * 60 - 9 * 60 * 60)

時差(-9時間)を考慮すると計算があいます。
日本以外で使った場合の考慮などはしてないので注意。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0