兩州之間的時間
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
說明
代表時間範圍。有效時間應介於 after 和 before 之間。
欄位
|
金鑰
|
類型 |
說明 |
before
|
時間
|
一天內的最長有效時間。 選用
|
after
|
時間
|
一天中的最短有效時間。 選用
|
weekdays
|
[星期幾]
|
適用的平日。如果留空,時間範圍將適用於每天。 選用
|
範例
檢查目前時間是否介於每天中午 12:00 至下午 5:00 之間。
condition:
type: time.between
before: 5:00 pm
after: 12:00 pm
檢查目前時間是否介於日落和日出之間 (隔天)。
condition:
type: time.between
before: sunrise
after: sunset
檢查目前時間是否在日落後 (午夜前)。
condition:
type: time.between
after: sunset
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-10-24 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["資訊不正確","incorrectInformation","thumb-down"],["資訊/範例不足","notEnoughInformationSamples","thumb-down"],["太複雜","tooComplicated","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-10-24 (世界標準時間)。"],[],[]]