lingxiaoj

时间戳函数

  

 DATA gv_tstamps TYPE tzonref-tstamps.

生成时间戳

  CALL FUNCTION \'CIF_GEN4_CONVERT_DATETIME\'
      EXPORTING
        iv_date                = gv_date "日期
        iv_time                = gv_time "时间
        iv_timezone            = sy-zonlo   "时区
      IMPORTING
        ev_timestamp           = gv_tstamps    "时间戳
      EXCEPTIONS
        time_conversion_failed 1
        OTHERS                 2.

分解时间戳

      CALL FUNCTION \'ZCIF_GEN4_CONVERT_TIMESTAMP\'
        EXPORTING
          iv_timestamp           = gv_tstamps    "时间戳
          iv_timezone            = sy-zonlo
        IMPORTING
          ev_date                = gv_date "日期
          ev_time                = gv_time "时间
        EXCEPTIONS
          time_conversion_failed 1
          OTHERS                 2.

分类:

技术点:

相关文章:

  • 2021-11-29
  • 2021-11-02
  • 2021-07-25
  • 2021-10-13
  • 2021-11-02
  • 2021-08-26
  • 2021-11-28
  • 2021-11-17
猜你喜欢
  • 2021-11-02
  • 2021-09-29
  • 2021-11-04
  • 2021-06-09
  • 2021-09-29
  • 2021-11-04
  • 2021-12-16
相关资源
相似解决方案