Time(時刻)コンテキスト

A Time Context specifies a particular range, or one (or more) points in time. There are three major components, at least one of which must be selected (by enabling its checkbox on the left):

  • From Time: the starting time of the range. If it’s not specified, 00:00 is assumed.
  • To Time: the end time of the range, inclusive. The context will deactivate after the end of the specified minute.
    If To Time is not specified then 23:59 is assumed i.e. the context deactivates at midnight.
  • Repeat: if no repeat is selected, the context is assumed to be a continuous range which starts at From Time and ends at To Time. If a repeat is specified, the first occurrence is at From Time and then every X hours or minutes until End Time.

When not in Beginner Mode, it’s possible to specify a global user variable as the source of the From Time or To Time by clicking on one of the rotating-arrow icons.

https://tasker.joaoapps.com/userguide/en/timecontext.html

時刻コンテキストは特定の時刻(複数可)または時間的な範囲を条件として指定します。主に三つの設定項目があり、少なくともその内一つは設定する必要があります。(設定する項目の左側にあるチェックボックスをチェックします。)

  • 開始:時間範囲の開始点を指定します。指定が無い場合は00:00が設定されたものとして扱われます。
  • 終了:指定された時刻を含む時間範囲の終了点です。コンテキストは指定した時刻の1分間が経過した時点で不成立となります。
  • 繰り返し:繰り返しが選択されていない場合、コンテキストは開始時刻から終了時刻までの範囲に設定されます。繰り返しが選択されている場合、コンテキストはまず開始時刻丁度に(瞬間的に)成立し、終了時間までの時間範囲毎に瞬間的な成立を繰り返します。

ビギナーモードが無効の場合、開始時刻または終了時刻の左の交差する矢印のアイコンをタップするとグローバルユーザー変数を時刻の指定に使用することが出来ます。

The variable contents must specify the hours and minutes in 24-hour format and separated by a period (dot) or colon e.g. 13.45. Leading 0s can be ommited e.g. 9.7 for seven-minutes-past-nine-in-the-morning.

Alternatively, the time can be specified in seconds-since-the-epoch format, in which case only the hour and minute part of the specification are used.

When the variable value changes, the time context is reevaluated which may result in it activating or deactivating. If the variable value does not specify a valid time then the profile will deactivate (if it’s already activated).

Note: in some cases it may be wise to disable the profile (via the Profile Status action) before changing the associated variable values. For example, if your time context is from 16.00 to 16.00 (i.e. acting as an event) and it should be changed to 17.00,17.00, if you don’t disable it first then as soon as you change the first value the time context will become a 23 hour range (17.00-16.00) and probably activate.

Notes:

  • to specify a precise time, set From and To times the same. In that case, the context is treated as an instant event, it it only active for a fraction of a second, so no setting restoration is done.
  • each repeat (if Repeat is set) is also treated like an instant event.
https://tasker.joaoapps.com/userguide/en/timecontext.html

変数の値は「時」と「分」を13.45の様に24時間表記でピリオドまたはコロンで区切って指定する必要があります。一桁の場合10の位の0は省略可能です。例えば、9.7は午前9時7分を表します。

別の方法としてエポック秒(※1)を用いて時刻を指定することも出来ます。この場合、「時」と「分」部分のみ指定します。

変数の値が変更されると時刻コンテキストは再評価されその結果コンテキストが成立または不成立となることがあります。変数の値が時刻として妥当では無い場合、プロファイルは(既にアクティブである場合も含めて)非アクティブとなります。

注記:場合によっては時刻コンテキストによって参照されている変数の値を変更する前にプロファイルを(プロファイル状態アクションなどによって)無効にした方が良いことがあります。例えば時刻コンテキストが16:00から16:00までに設定されていたとして(この場合イベントコンテキストと同様に動作します)これを17:00から17:00までに変更するとします。もし、プロファイルを無効にせずにいると開始時刻を17:00に変更した時点で17:00から翌16:00までの23時間を時刻コンテキストとして設定したものとしてプロファイルはアクティブになるでしょう。

注記:

  • ある時刻丁度を指定するには開始時刻と終了時刻を同じ値にセットします。この場合コンテキストは瞬間的なイベントとして扱われ、一瞬だけコンテキストが成立します。この場合設定の復元(※2)は行われません。
  • 繰り返しが設定されている場合、毎回のコンテキスト成立も同様に瞬間的なイベントとして扱われます。