How to find tz offset for a particular day (not today)

I have DATE values that need to be adjusted based on the tz and dst offset in effect on the date. I'm trying to figure out how to calculate the value to adjust them by.
tz_offset(tz) returns the timezone offset for the given tz for today. Is there a way to determine the offset for a timezone for another day, so that daylight savings time differences are honored?
Thanks.

Just double checked an alternative method, once your data is a timestamp with timezone, you can use the extract function to get just the parts of it you are interested in e.g.
with sample_data as (select TO_TIMESTAMP_TZ('2007/05/10:06:00:00pm', 'RRRR/MM/DD:HH:MI:SSpm') ts from dual
  union all select TO_TIMESTAMP_TZ('2009/02/22:05:00:00pm', 'RRRR/MM/DD:HH:MI:SSpm') from dual
select EXTRACT(TIMEZONE_ABBR FROM ts) TZ
     , EXTRACT(TIMEZONE_HOUR FROM ts) TZH
     , EXTRACT(TIMEZONE_MINUTE FROM ts) TZM
     , to_char(ts, 'tzh:tzm') x
     , ts
  from sample_data
TZ         TZH                    TZM                    X      TS           
PDT        -7                     0                      -07:00 10-MAY-07 06.00.00.000000000 PM AMERICA/LOS_ANGELES
PST        -8                     0                      -08:00 22-FEB-09 05.00.00.000000000 PM AMERICA/LOS_ANGELES
2 rows selected

Similar Messages

  • How to find condition  type for a particular material document no.

    hiiiiii
    How to find condition type for a particular material document no.

    Hi
    Condition types are maintained at PO level
    Take the EKKO-KNUMV and pass to
    KONV-KNUMV field and take the different condition types values from KONV
    Take the Material Document No (MBLNR) and pass to MSEG table and take the EBELN field and from EKKO table take EKKO-KNUMV field and pass to KONV
    see the table T685 for different condition types.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to find Missing Parts for a particular Process Order?

    Hi,
    How to find Missing Parts  for a particular Process Order ?
    Is there any function module or Table ??
    Thnx in Advance.

    Hi prince roy
    you can use the T-code = <b>CO24 - Missing Parts Info System</b>
    if helpful PLEASE REWARD YOUR POINTS
    thanks
    chakri

  • How  to find the definintion for a particular implementation

    hi
    ihave the implementation name so i put this in se19
    and after enter it asks for definition which has to be created in se18
    if we have some predefined definitons  already for that implementation
    how to find the particular definiton that is to be used

    Put that implementation name in the enhancement name option of SE18 and press display. I hope by implementation you dont mean the Z Include.
    If it is Z include then look for where use list of that and pick the Enhancement name from there.
    Regards,
    Amit

  • How to find Registry id for a particular supplier from back end

    I have just gone through the link of anil passi for getting registry_id for a particular supplier from front end
    but how come we can find registry_id from back end to a particular supplier.So, that we can get party_id of that supplier in HZ_PARTIES

    Hi,
    Sounds like you'll have more luck asking that in one of the E-Business Suite forums:
    https://forums.oracle.com/forums/category.jspa?categoryID=3
    Regards
    Peter

  • How to find Primary Key for a particular SAP Databse Table?

    Hi Guys,
                  How to find Primary Key and foreign key  for Particular SAP Databse table ?for Ex : EKKO , EKPO , EKKN , EKBE , EKBEH  , EKET and EKETH.
    Thanks,
    Srinivas.

    Use transaction SE11 to display the table. Put the cursor on the field you want to display the check table and click 'Foreign key' push button (a key with an bottom point arrow), then it will show the check table of the foreign of a field.
    Or by just simple double click on the field, a pop-up window of all the attribute (including the foreign key and the check table if exists) will show too.
    <i><b>Please reward point for helpful answer.</b></i>
    Minami

  • How to find header bom for a particular child bom

    for a particular serial number (sernr-equi) contains
    material number( matnr-equi) this is a child material number.
    so i need to find header material(bom component) for this particular material .
    i am passing material idnrk(equi-matnr) in stpo table to get header bom. i am getting more than one stlnr(bom components) for material with deiffernet serial number.
    there is no serial number field in stpo i could not able to find material with requried serial number used in bom component.
    tell me how can i proceed further.

    Hi Sridhar,
    Use CS_BOM_EXPLOSION FM.
    CALL FUNCTION 'CS_BOM_EXPLOSION'
            EXPORTING
              capid                 = 'PP01'
              datuv                 = SY-DATUM
              mtnrv                 = header-stlnr
              werks                 = header-werks
              mehrs                 = 'X'
            TABLES
              stbd                  = stbd
              stbe                  = stbe
              stbk                  = stbk
              stbm                  = stbm
              stbp                  = stbp
              stbt                  = stbt
            EXCEPTIONS
              alt_not_found         = 1
              call_invalid          = 2
              missing_authorization = 3
              no_bom_found          = 4
              no_plant_data         = 5
              no_suitable_bom_found = 6
              object_not_found      = 7
              conversion_error      = 8
              OTHERS                = 9.
    Afetr Passing capid,datuv,mtnrv,werks,mehrs values, FM will build STBP Table Which comntain all comnponents related to ur STLNR.
    Regards,
    Digesh Panchal
    Note : Please reward points, if it solve ur problem

  • How to find proper exit  for a particular job !

    I have the list of exits for a particular tcode e.g va01....
    Now how to find which is the correct one for a particular purpose...i.e while saving the order some thing will happen
    thanks

    Hi MORONEY ,
    In order to find out the user exits for any tcode,
    1. get the developement class of the tcode from SE93.
    2. Now goto transaction SMOD and press F4,
    3. give in the Deve class in the dev class and Press ENTER
    this will show u the exits for any tcode.
    or execute this report
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    Regards,
    Ramesh.

  • How to find the dbid for the particular datafile

    Hi,
    I am aware of ----- select dbid from v$database and rman connection option for finding the dbid.
    Any option for findout the dbid for a particular datafile and for controlfiles.? ( I heard the dbid stored in the datafile headers and controlfiles)
    Please help
    Thanks
    Shiju

    You need to be connected as SYS user to view these tables as below.
    SQL> conn sys/oracle@orcl as sysdba
    Connected.
    SQL> desc dba_hist_datafile
    Name                                      Null?    Type
    DBID                                      NOT NULL NUMBER
    FILE#                                     NOT NULL NUMBER
    CREATION_CHANGE#                          NOT NULL NUMBER
    FILENAME                                  NOT NULL VARCHAR2(513)
    TS#                                       NOT NULL NUMBER
    TSNAME                                    NOT NULL VARCHAR2(30)
    BLOCK_SIZE                                         NUMBER
    SQL>

  • How to find  stock category for a particular material in  inventory in r/3

    Hi All,
    I have found there is no update of some material category from r/3 to bw. when data is loading from ods to cube there is a routine for valued stock i.e., eg: stock category is 'U' then only update to cube other wise no update..  some stock category is missing in ods so those data is not updating to cube so  data is not matching from r/3 and bw.. could you any body please let me know where we can check stock category in r/3....
    just i want to check the postings in r/3 side for stock category which ever is not update to cube..
    I have tried in MB51, MB52, MB5B.. i couldnt find category for a material... if any body knows it please let me know..
    Thanks & Regards
    Sreekanth
    Edited by: sreekanthbulle on Sep 2, 2011 9:39 AM

    Hi
    Are you investigating Inventory as well..Can you pls share your design and how reconcile to match the data with SAP?
    Also how do I refresh data again from begining to do FULL REPAIR? pls help

  • How to find Webtemplates builld for a particular query ?.?.?.?.?.?.?.?.?.?

    Hi Gurus,
    I wanted to find out what all are the web templates (in WAD) build/used for a partiuclar query in Query designer.
    I tried "where-used" in BEx query designer, didn't work.
    It's urget plz.
    Regards,
    Venkat

    Hi,
    You can set the properties of Web templates for all Web applications in Customizing.
    You make these settings in the SAP Reference IMG > SAP Customizing Implementation Guide > SAP NetWeaver > Business Intelligence > Settings for Reporting and Analysis > BEx Web > Determine Settings for Web Templates.
    Specifying standard Web templates for ad hoc analysis and reports
    For more information, see the SAP Reference IMG > SAP Customizing Implementation Guide > SAP NetWeaver > Business Intelligence > Settings for Reporting and Analysis > BEx Web > Set Standard Web Templates
    http://help.sap.com/saphelp_nw04/helpdata/en/9e/9f653ade969f4de10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/37813b650cdc0be10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/23/fea042b443c56ae10000000a155106/content.htm
    Regards.

  • How to find Driver program for an Particular Script Excluding TNAPR, NACE

    Hi Friends,
    I had an problem now, that I need to find the driver program for Dunning 'F150' which I already checked in TNAPR table and NACE transaction code, but I couldn't find any desired results on this search. Kindly can anybody suggest me for getting out of it as I need to make some changes over the driver program. Your help is mostly appreciated.
    Thanks in Advance,
    Murali.

    hi,
    try this.
    goto se71 transaction.give your form name click display.in menu goto form - check -texts and press enter.
    you will get all the print programs used for that script.

  • How to find the source for an particular nuget

    Simple question.... with a GUI or Package Manager Console, how do I tell where a specific package came from?
    Thank Kevin

    Hi Kevin,
    >>Simple question.... with a GUI or Package Manager Console, how do I tell where a specific package came from?
    Since this forum is to discuss the VS IDE usage, for package manager console, maybe you could use the command line "get-help NuGet" to see all available NuGet commands.
    For example:
    Enter Get-Package -ListAvailable at the prompt to see a list of all packages  that are available in the selected package source.
    If we do not know the name of the package we want to remove, enter
    Get-Package at the prompt  without any flags to see a list of all of the packages that are currently installed.
    Reference:
    https://docs.nuget.org/consume/Package-Manager-Console-PowerShell-Reference
    https://docs.nuget.org/consume/package-manager-console
    A simliar thread:
    http://stackoverflow.com/questions/11867660/list-all-available-versions-of-a-specific-package-in-nuget-package-manager-conso
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to find Object name for a object?

    Hi Experts,
    How to find Object name for a particular Object? Is there a Tcode for it?
    __Like Object name for__
    Material number -  materialnr
    Goods receipts / return - matbeleg
    Accounting documents -  rf_beleg
    How to find Object name for other Objects? Is there a particular way?
    Thanks & Regards
    Chandan

    Hi,
    You can find objects in SNRO transaction.
    In SNRO search by giving long text...
    for eg., Service .. for service entry sheet. keep the first letter in capital letter only.
    Thanks & Regards,
    Anand.

  • How to find open SO Items with tax code for a particular day?

    Dear all
    If i want to see all open SOs(items), with tax code for a particular day, how to find using table VBAP in SE16?
    Please guide me
    Edited by: Julius Bussche on Mar 3, 2009 11:10 PM
    Please use descriptive subject titles and the search

    Hi GB,
    Its always better to see through the standard reports , as you will be able to see the aditional info as well.
    In the case of table in se16 you will be able to see one table at a time and then you need to manually figure out the fields that required.
    For example if you want to see the sales order details through tables then
    1.You have to go to VBAK to see the document type and then you need to go to VBAP to see the items , it means that you need to access 2 tables for this simple thing ....
    In standard reports there will be lot of joins between the tables and you can view the data more elobarately as weel.
    Note : In general if you want to see the complete details of the documents(open), then pls use the reports.
    Regards,
    Vvieks

Maybe you are looking for

  • SAP BI 7.0 and BO XI 3.1 Integration Problems

    Hi everyone, After following through every step of: Re: Checklist for SAP BI 7.0 and BO XI 3.1 integration - Challenges I still get the following problems: 1. Unable to find SAP in CMC Authentication 2. At the login page of InfoView, I can select SAP

  • Install Base APIs - creating 'Installed At' address

    Dear Experts, I am looking to create an Item Instance using the API: CSI_ITEM_INSTANCE_PUB.create_item_instance such that when it is queried from the Oracle E-Business Suite under the responsibility: 'Oracle Installed Base User' then all the informat

  • Manipulating live objects in the Run Time system

    A Graphic User interface exists that has GUI components say JButtons. This program cannot be edited. If the container ( say a GUI panel , where this JButton resides ) of this GUI is obtained then the components in this container can be obtained using

  • VAT 50% & balance on hold account

    Hi, VAT is applicable for one asset purchase. i.e for capital items. So VAT input 50% will be eligible to claim in current year and balance % to be booked in to VAT on Hold account. This is to be automated without transfer posting.(journal  posting)

  • When logging out of a website, a new tab opens to the closed page but the original tab is still open. How do I close first tab?

    When I open a site, such as a Credit card website, after I logon, but when I try to logout. When I hit the logout button, a new tab opens and this page is now the logged out page of the website, but the original tab is still open and the page is stil