기간 및 달력 지속 기간 비교

기간은 달력 지속 기간보다 길거나 짧을 수 있습니다.

다음 연산자를 사용하여 기간 및 달력 지속 기간을 비교할 수 있습니다.
  • is shorter than 및 is shorter than or equal to
  • is longer than 및 is longer than or equal to

다음 규칙은 항공편이 두 시간 미만인지 여부를 확인합니다.

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";