Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Future consideration
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on May 18, 2023

bring timestamp timezone awareness

Please add timezone awareness to TIMESTAMP primitive value.

Additionally, add the possibility to return current UTC time to BIF %TIMESTAMP


ts1 = %TIMESTAMP() // system current timestamp

ts2 = %TIMESTAMP(*UTC) // current utc timestamp


seconds = %DIFF(ts1 : ts2 : *SECONDS) //provide correct result being timezone aware








Idea priority Medium
  • Guest
    Reply
    |
    Aug 18, 2023
    Thank you for providing additional information.

    IBM will use this Idea as input to planning, but no commitment is made or implied. This Idea will be updated in the future if IBM implements it. IBM will use votes and comments from others in the community to help prioritize this Idea.

    If this Idea is implemented, support will be added for %TIMESTAMP(*UTC). Support may also be added for a specific timezone.

    However, support will not be added by this Idea for a timestamp variable to encapsulate about its timezone.

    - IBM Power Systems Development
  • Guest
    Reply
    |
    Jul 5, 2023

    what additional timezone support?

    Would be nice to let %TIMESTAMP() return a timestamp based on a requested timezone.

    i.e. %TIMESTAMP(*UTC) return a timestamp in UTC time (useful to communicate usually with external systems, webservices etc.).

    or a string referencing a zone like

    %TIMEZONE('QP0800AWST') return a timestamp using QP0800AWST offset (from WRKTIMZON) - or exception if zone is not existent.


    Additionally, would be nice to have native support for timezone offset aware arithmetics, like in other systems.

    i.e. the possibility to get - say - the correct difference in seconds between two timestamps in different timezones (this awareness can be enabled for example with a CTL-OPT in case...) without "manual" additional coding.

    To obtain this, I think that the timezone native variable should encapsulated also its offset relative to base UTC, maybe with compiler support.


  • Guest
    Reply
    |
    Jun 15, 2023
    IBM needs more information to further assess your Idea.

    %TIMESTAMP already returns the timestamp according to the QTIMZON system value.

    Aside from support for *UTC, what additional timezone support are you requesting?

    - IBM Power Systems Development