期間とカレンダー持続期間の比較

期間は、カレンダー持続期間より長い場合もあれば短い場合もあります。

以下の演算子を使用して、期間とカレンダー持続期間を比較します。
  • is shorter than と is shorter than or equal to
  • is longer than と is longer than or equal to

以下のルールは、飛行時間が 2 時間未満かどうかをチェックします。

definitions
    set 'the flight period' to the period between the scheduled departure time of 'the flight' 
    and the scheduled arrival time of 'the flight';
if
    'the flight period' is shorter than 2 hours
then
    print "The flight is a short one";