Last active
December 17, 2015 14:39
-
-
Save njames/5625969 to your computer and use it in GitHub Desktop.
a way of using https://github.com/njames/datetime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT z_hello_datetime. | |
data: | |
dt type REF TO zcl_datetime | |
, fs type string | |
, ts type timestamp | |
. | |
get time STAMP FIELD ts. | |
create OBJECT dt | |
EXPORTING timezone = sy-zonlo | |
timestamp = ts. | |
fs = dt->format( 'd M Y H:m' ). | |
WRITE: / fs. "22 May 2013 17:05 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment