zoukankan      html  css  js  c++  java
  • 常用时间相关函数

     

    判断输入时间类型是numc类型的函数


      call function 'NUMERIC_CHECK'

        exporting

          string_in = p_date

        importing

          htype     = lv_type.



      if lv_type ne 'NUMC'.

        lv_error 'X'.

      endif.


    判断日期是否有效的函数



     lv_date = p_date+0(8).

      call function 'DATE_CHECK_PLAUSIBILITY'

        exporting

          date                      = lv_date

        exceptions

          plausibility_check_failed 1

          others                    2.

      if sy-subrc <> 0.

        lv_error 'X'.

      endif.

  • 相关阅读:
    Codeforces Round #380(div 2)
    Codeforces Round #378(div 2)
    Codeforces Round #379(div 2)
    CCPC2016合肥现场赛
    CCPC2016沈阳站
    HDU2222 Keywords Search__AC自动机
    poj2185Milking Grid
    POJ2961_kmp
    POJ 2406
    poj 2752Seek the Name, Seek the Fame
  • 原文地址:https://www.cnblogs.com/QIANQIANHAPPY/p/6905000.html
Copyright © 2011-2022 走看看