<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Epoch time convertor function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232074#M1629293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at standard FM RKE_TIMESTAMP_CONVERT_INPUT and RKE_TIMESTAMP_CONVERT_OUTPUT, those convert FM refer to a zero date &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: REL_DATE            LIKE SY-DATUM  VALUE '19900101', " Bezugsdatum&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You could copy the Function group and FM and change this value for '19700101' in the copied FG, or use those FM and add/remove the number of seconds between first day of 1970 and 1990. (20 years, 7305 days, 175320 hours so 631152000 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;DEL&gt;&lt;EM&gt;Don't&lt;/EM&gt;&lt;/DEL&gt; forget also that some days are 86401 sec long and not 86400 ([leap seconds|http://en.wikipedia.org/wiki/Leap_seconds])...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2011 08:43:29 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2011-09-23T08:43:29Z</dc:date>
    <item>
      <title>Epoch time convertor function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232070#M1629289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have any function module to conver epoch time.&lt;/P&gt;&lt;P&gt;Epoch time means &lt;/P&gt;&lt;P&gt;The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z). Literally speaking the epoch is Unix time 0 (midnight 1/1/1970)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details refer&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.epochconverter.com/" target="test_blank"&gt;http://www.epochconverter.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Murali.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 06:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232070#M1629289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T06:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time convertor function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232071#M1629290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cant we build the logic by finding the number of seconds by subtracting the current date with 1.1.1970. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 06:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232071#M1629290</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-23T06:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time convertor function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232072#M1629291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know ABAP, can you please help me if you can give the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Murali.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 06:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232072#M1629291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-23T06:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time convertor function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232073#M1629292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched and got the Unix commnd to get the Epoch time stamp, its &lt;STRONG&gt;date +%s&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some methods to execute the unix command which i know but I am not sure of any methods which returns the value of the executed command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this syntax from some links and done some modifications which you can try, i have not checked it &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
types:begin of ty,
line(200), 
end of ty.
data:it type tale of ty.
data: COMMAND(1000) type c. 

command = 'date +%s'
CALL 'SYSTEM' ID 'COMMAND' FIELD COMMAND 
ID 'TAB' FIELD it-*SYS*. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the internal table it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that i have not tested it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 06:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232073#M1629292</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-23T06:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time convertor function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232074#M1629293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at standard FM RKE_TIMESTAMP_CONVERT_INPUT and RKE_TIMESTAMP_CONVERT_OUTPUT, those convert FM refer to a zero date &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: REL_DATE            LIKE SY-DATUM  VALUE '19900101', " Bezugsdatum&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You could copy the Function group and FM and change this value for '19700101' in the copied FG, or use those FM and add/remove the number of seconds between first day of 1970 and 1990. (20 years, 7305 days, 175320 hours so 631152000 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;DEL&gt;&lt;EM&gt;Don't&lt;/EM&gt;&lt;/DEL&gt; forget also that some days are 86401 sec long and not 86400 ([leap seconds|http://en.wikipedia.org/wiki/Leap_seconds])...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 08:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232074#M1629293</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-09-23T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch time convertor function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232075#M1629294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Use the below code to get UTC timestamp in seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;: &lt;/SPAN&gt;LV_TIME_UTC &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;I&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'ALERTS' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'ADMODE'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FIELD &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'OPCODE'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FIELD &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;30&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'ACT_TIME'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FIELD &lt;/SPAN&gt;LV_TIME_UTC&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; text-align: -webkit-center; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; text-align: -webkit-center; background: transparent;"&gt;WRITE: &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; text-align: -webkit-center; background: transparent;"&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; text-align: -webkit-center; background: transparent;"&gt;LV_TIME_UTC. "in seconds. (seconds since Jan-01-1970).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; text-align: -webkit-center; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;Ashok.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epoch-time-convertor-function-module/m-p/8232075#M1629294</guid>
      <dc:creator>Ashok-Kumar-M</dc:creator>
      <dc:date>2014-10-29T22:52:22Z</dc:date>
    </item>
  </channel>
</rss>

