!= 蛻ｩ逕ｨ閠�ｮ夂ｾｩ貍皮ｮ怜ｭ� (<=) 縺ｮ縺溘ａ縺ｮ髢｢謨ｰ
!= Functions for user defined operation (<=)
!
! Authors::   Yasuhiro MORIKAWA
! Version::   $Id: dcdatetimele.f90,v 1.1 2009-05-25 10:01:34 morikawa Exp $
! Tag Name::  $Name:  $
! Copyright:: Copyright (C) GFD Dennou Club, 2000-2005. All rights reserved.
! License::   See COPYRIGHT[link:../../COPYRIGHT]
!
  logical function dcdatetime_le_tt(time1, time2) result(result)
    !
    ! 2 縺､縺ｮ蠑墓焚縺ｮ譌･譎ゅｒ豈碑ｼ�＠縺ｾ縺�.
    ! 2 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎ゅ′ 1 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎�
    ! 繧医ｊ繧るｲ繧薙〒縺�ｋ蝣ｴ蜷医°繧ゅ＠縺上�遲峨＠縺��ｴ蜷�, .true. 縺瑚ｿ斐ｊ縺ｾ縺�.
    !
    use dc_date_generic, only: operator(>)
    use dc_date_types, only: DC_DATETIME, DC_DIFFTIME
    implicit none
    type(DC_DATETIME), intent(in):: time1, time2
  continue
    result = .not. time1 > time2
  end function dcdatetime_le_tt

  logical function dcdatetime_le_ff(diff1, diff2) result(result)
    !
    ! 2 縺､縺ｮ蠑墓焚縺ｮ譌･譎ょｷｮ繧呈ｯ碑ｼ�＠縺ｾ縺�.
    ! 2 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎ょｷｮ縺� 1 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎ょｷｮ
    ! 繧医ｊ繧ょ､ｧ縺阪＞蝣ｴ蜷医°繧ゅ＠縺上�遲峨＠縺��ｴ蜷�, .true. 縺瑚ｿ斐ｊ縺ｾ縺�.
    !
    use dc_date_generic, only: operator(>)
    use dc_date_types, only: DC_DATETIME, DC_DIFFTIME
    implicit none
    type(DC_DIFFTIME), intent(in):: diff1, diff2
  continue
    result = .not. diff1 > diff2
  end function dcdatetime_le_ff

  logical function dcdatetime_le_fi(diff, factor) result(result)
    !
    ! 2 縺､縺ｮ蠑墓焚縺ｮ譌･譎ょｷｮ繧呈ｯ碑ｼ�＠縺ｾ縺�.
    ! 2 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎ょｷｮ縺� 1 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎ょｷｮ
    ! 繧医ｊ繧ょ､ｧ縺阪＞蝣ｴ蜷医°繧ゅ＠縺上�遲峨＠縺��ｴ蜷�, .true. 縺瑚ｿ斐ｊ縺ｾ縺�.
    !
    use dc_date_generic, only: operator(>)
    use dc_date_types, only: DC_DATETIME, DC_DIFFTIME
    implicit none
    type(DC_DIFFTIME), intent(in):: diff
    integer, intent(in):: factor
  continue
    result = .not. diff > factor
  end function dcdatetime_le_fi

  logical function dcdatetime_le_if(factor, diff) result(result)
    !
    ! 2 縺､縺ｮ蠑墓焚縺ｮ譌･譎ょｷｮ繧呈ｯ碑ｼ�＠縺ｾ縺�.
    ! 2 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎ょｷｮ縺� 1 縺､逶ｮ縺ｮ蠑墓焚縺ｫ譬ｼ邏阪＆繧後ｋ譌･譎ょｷｮ
    ! 繧医ｊ繧ょ､ｧ縺阪＞蝣ｴ蜷医°繧ゅ＠縺上�遲峨＠縺��ｴ蜷�, .true. 縺瑚ｿ斐ｊ縺ｾ縺�.
    !
    use dc_date_generic, only: operator(>)
    use dc_date_types, only: DC_DATETIME, DC_DIFFTIME
    implicit none
    integer, intent(in):: factor
    type(DC_DIFFTIME), intent(in):: diff
  continue
    result = .not. factor > diff
  end function dcdatetime_le_if