<?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: Current date for a time zone in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322974#M166046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the &amp;lt;b&amp;gt;CONVERT TIME STAMP&amp;lt;/b&amp;gt;  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;CONVERT for Timestamps&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converts a timestamp into the correct date and time for the current time zone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT TIME STAMP &amp;lt;tst&amp;gt; TIME ZONE &amp;lt;tz&amp;gt; INTO DATE &amp;lt;d&amp;gt; TIME &amp;lt;t&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT DATE &amp;lt;d&amp;gt; TIME &amp;lt;t&amp;gt; INTO TIME STAMP &amp;lt;tst&amp;gt; TIME ZONE &amp;lt;tz&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as &amp;lt;tst&amp;gt; has type P(8) or P(11) with 7 decimal placed, and &amp;lt;tz&amp;gt; has type C(6), the time stamp &amp;lt;tst&amp;gt; will be converted to the correct date &amp;lt;d&amp;gt; and time &amp;lt;t&amp;gt; for the time zone &amp;lt;tz&amp;gt;.&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2006 19:57:31 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-05-17T19:57:31Z</dc:date>
    <item>
      <title>Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322972#M166044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Is there any function module to find the current date for a given time zone?&lt;/P&gt;&lt;P&gt;If anyone of you has written/worked on such function module it would be really helpful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 19:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322972#M166044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T19:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322973#M166045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these FMs&lt;/P&gt;&lt;P&gt;TZON_CHECK_TIMEZONE&lt;/P&gt;&lt;P&gt;TZON_GET_TIMEZONE_TEXT&lt;/P&gt;&lt;P&gt;TZON_GET_USER_TIMEZONE&lt;/P&gt;&lt;P&gt;TZ_LOCATION_TIMEZONE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 19:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322973#M166045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T19:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322974#M166046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the &amp;lt;b&amp;gt;CONVERT TIME STAMP&amp;lt;/b&amp;gt;  statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;CONVERT for Timestamps&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converts a timestamp into the correct date and time for the current time zone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT TIME STAMP &amp;lt;tst&amp;gt; TIME ZONE &amp;lt;tz&amp;gt; INTO DATE &amp;lt;d&amp;gt; TIME &amp;lt;t&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT DATE &amp;lt;d&amp;gt; TIME &amp;lt;t&amp;gt; INTO TIME STAMP &amp;lt;tst&amp;gt; TIME ZONE &amp;lt;tz&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as &amp;lt;tst&amp;gt; has type P(8) or P(11) with 7 decimal placed, and &amp;lt;tz&amp;gt; has type C(6), the time stamp &amp;lt;tst&amp;gt; will be converted to the correct date &amp;lt;d&amp;gt; and time &amp;lt;t&amp;gt; for the time zone &amp;lt;tz&amp;gt;.&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 19:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322974#M166046</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-17T19:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322975#M166047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try FMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/SAPTRX/RANGE_CONVERT &lt;/P&gt;&lt;P&gt;CONVERT_TIME_TERMS &lt;/P&gt;&lt;P&gt;CIF_GEN3_CONVERT_DATETIME &lt;/P&gt;&lt;P&gt;CIF_GEN3_CONVERT_TIMESTAMP &lt;/P&gt;&lt;P&gt;CIF_GEN_CONVERT_DATETIME &lt;/P&gt;&lt;P&gt;CIF_GEN_CONVERT_TIMESTAMP &lt;/P&gt;&lt;P&gt;CIF_GEN4_CONVERT_DATETIME &lt;/P&gt;&lt;P&gt;CIF_GEN4_CONVERT_TIMESTAMP &lt;/P&gt;&lt;P&gt;CO_SF_CONVERT_TIMES_OPR &lt;/P&gt;&lt;P&gt;CXTP &lt;/P&gt;&lt;P&gt;DATE_TIME_CONVERT &lt;/P&gt;&lt;P&gt;POINT_IN_TIME_CONVERT &lt;/P&gt;&lt;P&gt;FITP_CONVERT_LOCAL_TIME_GMT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tip : GO to -&amp;gt; SE37 and search key word &lt;STRONG&gt;TIME&lt;/STRONG&gt; OR &lt;STRONG&gt;Convert&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 19:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322975#M166047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T19:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322976#M166048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check F1 help on the command CONVERT DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONVERT DATE dat [TIME tim [DAYLIGHT SAVING TIME dst]] &lt;/P&gt;&lt;P&gt;        INTO TIME STAMP time_stamp TIME ZONE tz. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;... DAYLIGHT SAVING TIME dst &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement adopts a date specified in dat, a time specified in tim, and a daylight saving time selection specified in dst as the local date and time specification for the time zone specified in tz, converts it to the UTC reference time, and assigns the result to the time_stamp variable as a time stamp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 19:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322976#M166048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T19:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322977#M166049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick, This works when we already have the date and time for the time zone. My req is to find this date and time for the user specified zone. If you have some examples.. Please let me know.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 20:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322977#M166049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T20:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322978#M166050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;P&gt;/SOMO/GET_TIMEZONE&lt;/P&gt;&lt;P&gt;GET_SYSTEM_TIMEZONE&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TIMEZONE&lt;/P&gt;&lt;P&gt;TIMEZONE2&lt;/P&gt;&lt;P&gt;TZON_GET_USER_TIMEZONE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;P.S award the points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Good luck &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib Khan&lt;/P&gt;&lt;P&gt;"Some are wise and some are otherwise"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 20:02:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322978#M166050</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-05-17T20:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322979#M166051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to find out what the ajustment is for your time zone.  Here is a sample program which uses the ajustments going backward and forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data:  tstamp type timestamp,
       datum  type datum,
       uzeit  type sy-uzeit,
       new_date type sy-datum,
       new_time type sy-uzeit,
       stamp(14) type c,
       time_zone_adjustment(6) type c,
       index(2) type c.


set country 'US'.

datum = sy-datum.
uzeit = sy-uzeit.

* Go back
do 12 times.

  index = sy-index.
  concatenate 'UTC+' index into time_zone_adjustment.
  condense time_zone_adjustment no-gaps.

  convert date datum time uzeit into
          time stamp tstamp time zone time_zone_adjustment.

  clear stamp.
  stamp = stamp + tstamp.

  new_date = stamp+0(8).
  new_time = stamp+8(6).

  write:/ new_date, new_time.


enddo.


skip 1.


* Go forward
do 12 times.

  index = sy-index.
  concatenate 'UTC-' index into time_zone_adjustment.
  condense time_zone_adjustment no-gaps.

  convert date datum time uzeit into
          time stamp tstamp time zone time_zone_adjustment.

  clear stamp.
  stamp = stamp + tstamp.

  new_date = stamp+0(8).
  new_time = stamp+8(6).

  write:/ new_date, new_time.


enddo.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 20:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322979#M166051</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-17T20:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current date for a time zone</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322980#M166052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     You can make use of the below system fields :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-DATLO -- Date and Time,Local date of user&lt;/P&gt;&lt;P&gt;SY-TIMLO -- Date and Time,Local time of user&lt;/P&gt;&lt;P&gt;SY-ZONLO -- Date and Time,Time zone of user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward helpful answers&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nishanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 11:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/current-date-for-a-time-zone/m-p/1322980#M166052</guid>
      <dc:creator>nishanthbhandar</dc:creator>
      <dc:date>2006-05-18T11:10:55Z</dc:date>
    </item>
  </channel>
</rss>

