-
-
Save jschang19/b6ee252f306fb49a5519f462a3b81371 to your computer and use it in GitHub Desktop.
App Script 取得目前時間的語法。
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
var current_hour = Utilities.formatDate(new Date(), "Asia/Taipei", "HH"); | |
// 最後的引號是取得時間的格式,HH 是指小時 | |
// 還有 yyyy (year), mm (分), ss (秒 ),更多可以看 App Script 官方說明 | |
// https://developers.google.com/google-ads/scripts/docs/features/dates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment