Time convertion b/w BST to GMT

Hi Guys,
Is there any Oracle function to convert British time Zone(BST) to Green wich meen time Zone(GMT).
if it is there would you please help me by Explaining that..
I need to covert Trade execution time from BST to GMT wich should Need to be in GMT.
Thankx In Advance...
thankx,
Lakshmi.

Hi and welcome to the forum!
Your question has been asked before, see f.i.:
Re: Converting Date to timestamp with time zone
(Do some more searches on this forum to find more examples)
Read all about TIMESTAMP, CAST, FROM_TZ @ http://tahiti.oracle.com (the Oracle Documentation).
If that doesn't get you going, then please post your DB-version and your efforts sofar.

Similar Messages

  • Convert date in BST to GMT format

    Here date and cal.getTime() return date in BST format. But my requirement is date should be converted to GMT format and then compared with cal.getTime() which is in BST format.
              Object o = timeStamp.get(TIMESTAMP_OBJECT);
                java.util.Date date = (java.util.Date) o;
                Calendar cal = Calendar.getInstance();
                getBDO().setLastDespatch(isLastDespatch(cal.getTime(), date));
    public static boolean isLastDespatch(Date counterDate, Date lastDespatchDate)
            if (counterDate.before(lastDespatchDate))
                // last despatch timestamp before
                return false;
            else
                // last despatch timestamp expired, therefore tell clerk
                return true;
        }I tried
    Object g = date.toGMTString();
    But I am not able to convert this object to again Date...

    NewComer_forum wrote:
    I tried with below code but throwing exceptions
    String g = date.toGMTString();
    SimpleDateFormat date1 = new SimpleDateFormat(g);
    You of course read the Javadoc, and so know that the argument to the constructor SimpleDateFormat(String) is the pattern by which you want to parse, and not the string you want to parse itself, right? I mean, you didn't just try one random thing to prove that you gave it a minimal effort before coming back here for more handholding, correct?
    Do me a favour and try my suggestion before continuing. I don't know for sure that it will work, but I think it's likely.

  • Converting any date string to GMT standard

    Hi All,
    I want to convert any date string to GMT standard.
    The date string may be like this.
    "Sat Sep 15 14:23:40 IST 2001"
    I have tried to change my defaultTimeZone .
    But I don't know why it's not working.
    Is there something to do with Locals?
    Can anyone please tell me the way to
    accomplish that ?
    Thanks in advance.
    Sujoy

    Java stores all the dates in GMT Format , considering the machines TimeZone Setting ....and also i guess date has methods like toGMTString() and toLocaleString() . To convert the date to GMT i guess u can just say toGMTString() of the date . If u have the stringified version of date
    just make a new Date(String) and then calling toGMTString of it .

  • Unix time converter

    Does anyone have a good unix time converter class
    I want to convert a unix time to a UTC time in ss:mm:hh dd,mm,yy
    how to do this?

    int i = 1061287200;
    long t = i * 1000L;
    java.util.Date d = new java.util.Date(t);Assumes original time is seconds since some epoch...

  • Difference Time b/w Current TimeZone to GMT

    Hi
    I need to get the Difference time(Millisec), between current TimeZone to GMT
    Can anyone help me to get this.
    Thanks

    Look at TimeZone's getRawOffset() and getOffset(long) methods.

  • Time converter application, please read

    hello,
    I want to create a time converting java applet. Which can convert times between am-pm and pm-am.
    I also need it to calculate the number of hours and minutes between two given times.
    does anyone knows an online tutorial which can teach me to create this application. if you can help at all that would be great, thanks

    is there any tutorials starting from scratchWhat does a conversion from am to pm mean?Means you're late for workWhat! I've already worked for 8h and now you want me
    to work even more!
    I should join the union.
    (Or facket as it's called in Sweden, pronounced
    fuckit)Yep. That's why I bought one of those new fangled 24 hour clocks. I get a lie in and I get loads of overtime

  • Does labview provide epoch time converter support?

    Hi,
    My product creates a data log file with time stamp. The time stamp is of the epoch format. The system is based on the linux. So I assume that this time stamp is a unix based format. How  should I convert this time stamp data to the UTC format in labview?
    Regards
    Gopal

    LabVIEW's time stamp is the number of seconds since 00:00:00 01/01/1904. Unix (and hence I presume Linux) time is the number of seconds since 00:00:00 01/01/1970, all times specified as GMT. So all you need to do to a Unix timestamp is to add the number of seconds between these two moments in time to obtain the LabVIEW timestamp.
    You can generate this number by using Date/Time to seconds, giving the input as Day 1, Month 1, Year 1970, and all others zero. It gives 2082844800
    Make sure that you treat the numbers as U32, as the current date/time exceeds the maximum value for as signed 32 but value.
    Rod.

  • Converting a timestamp field from GMT to EST

    Hi
    I have to convert the timestamp field coming from the source from GMT to EST.
    CREATE TABLE X
    TS_FIELD TIMESTAMP(6)
    INSERT INTO X VALUES('07-JAN-13 02.00.06.597000 PM');
    INSERT INTO X VALUES('07-FEB-13 02.00.06.676000 PM');
    INSERT INTO X VALUES('07-MAR-13 12.36.14.260000 PM');
    INSERT INTO X VALUES('07-APR-13 12.36.56.713000 PM');
    INSERT INTO X VALUES('07-MAY-13 03.46.48.800000 AM');
    I need to convert the above timestamp field from GMT to EST in 24hour format.
    I tried it doing,but I am getting hours conflict with the day error.
    I have tried the below one and milliseconds being set to zero's
    select X,
    TO_timestamp(TO_CHAR(CAST(FROM_TZ(CAST(TO_DATE(TO_CHAR(X,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    ,'YYYY-MM-DD HH24:MI:SS.SSSSS')
    AS TIMESTAMP),'GMT') AT TIME ZONE 'US/EASTERN' AS DATE),'YYYY-MM-DD HH24:MI:SS.SSSSS'),'YYYY-MM-DD HH24:MI:SS.SSSSS')
    FROM X
    Please help me in this regard.I am trying in parallel as well.
    Thanks in advance
    KVB

    Not clear what are you trying to achieve..Why are you casting as DATE?
    SQL>  select ts_field,
      2          cast(from_tz(ts_field,'GMT') AT TIME ZONE 'EST' as timestamp) t
      3   FROM X;
    TS_FIELD                                                                    T
    07-JAN-13 02.00.06.597000 PM                                                07-JAN-13 09.00.06.597000 AM
    07-FEB-13 02.00.06.676000 PM                                                07-FEB-13 09.00.06.676000 AM
    07-MAR-13 12.36.14.260000 PM                                                07-MAR-13 07.36.14.260000 AM
    07-APR-13 12.36.56.713000 PM                                                07-APR-13 07.36.56.713000 AM
    07-MAY-13 03.46.48.800000 AM                                                06-MAY-13 10.46.48.800000 PM

  • NX-OS - clock summer-time - Last sunday for BST?

    Hiya,
    This may be a dumb question - I may just be missing something obvious - but I'm trying to setup some NX-OS based devices (5548Ps/5020s/1000Vs) with the correct daylight savings setting for the UK - ie. british summer time.
    The definition of BST is:
    "British Summer Time (BST) starts on the last Sunday in March and ends on the last Sunday in October, at 1.00 am Greenwich Mean Time (GMT)"
    ie. it's always the 'last' sunday'. On our IOS devices we do this:
         clock timezone GMT 0
         clock summer-time BST recurring last Sun Mar 1:00 last Sun Oct 1:00
    ....but there's no equivalent 'last' keyword on NX-OS:
    clock summer-time zone-name start-week start-day start-month start-time end-week end-day end-month end-time offset-minutes
    Sometimes the 'last' sunday is the 4th, and sometimes it's the 5th...?
    Anyone know how to set it to the last sunday? Or do I just have to accept it's sometimes going to be a week out?
    Thanks,
    Rob...

    Looks like you're right Jerry! Thanks!
    Just managed to find a switch to test it on - and it works as expected:
    switch-n5k(config)# sh run | inc clock
    clock timezone GMT 0 0
    clock summer-time BST 5 Sunday March 01:00 5 Sun Oct 01:00 60
    switch-n5k(config)# sh clock
    00:56:38.908 GMT Sun Mar 27 2011
    switch-n5k(config)# sh clock
    02:02:59.779 BST Sun Mar 27 2011
    switch-5k(config)#
    Thanks,
    Rob...

  • Date and Time convertion in iChart

    Hi,
    My question is: The date and time field displayed in ichart is in a number format rather than a date and time format. Why?
    1. A query is created first to extract data from an oracle database. The date and time is converted to a string by using to_char(x, ‘yyyy-MM-dd, hh24:mi:ss) function.
    2. An Axcute transaction is then used to convert date and time from the first query to XML date format: As suggested by Martin Auer on Aug 22, 2006 in his answer to Sudha, I create an output document in Business Logic Editor and define a column in DateTime format. The output from xAcute is in XML date format as ‘2006-12-14T13:21:00’.
    3. The second query is created to display data for the Axcute transaction. The output from the second query in Text/xml type is shown as: <TIME>2006-12-14T13:21:00</TIME>
    4. However, when the date and time is displayed in iChart, the date and time on X-axis is presented as a number like 1.166.098.860.000,00. The data source for the chart is shown as: 2006-12-14 13:21:00
    5. The display template is derived from a template used on the training course and date format in template is set to yyyy-MM-dd HH:mm:ss. The template is tested on the data from PlasticResin database (training course), the date and time is presented in a correct format.
    Could someone please answer my question?
    Thanks,
    Xin

    Xin,
    If you test your query (I assume it is an Xacute query) and choose text/xml - what is the SQL data type for the date/time column?
    It sound like the chart is not recognizing the query as a time-sensitive query.
    Let me know what you find,
    Joe Montagna

  • HT1473 In iTunes 11 is it possible to import WAV files whilst at the same time converting them to AAC?

    I've searched high and low and cannot for the life of me answer my own question. There are plenty of obsolete references to holding down option keys and clicking on something advanced but it's long deceased. iTunes is a monster! Help!
    I've been rippng my vinyl and converting the tracks to WAV outside of iTunes. Now I want to bring them in to iTunes but in AAC and without bringing in the WAV files at the same time.
    Thanks

    turingtest2 wrote:
    iTunes can only convert tracks that are already part of the library (or WMA on import into iTunes for Windows).
    tt2 - don't recall if you know this but it's possible to add/convert in a single step prior to iTunes 11.
    I don't know about iTunes 11. I'll have a look later today.
    In iTunes prior to 11, Option (Mac) Shift (Windows), iTunes menu Advanced > Convert {whatever is set in Import settings}
    See this -> http://support.apple.com/kb/HT1550

  • Literal time convert problem

    Hi Experts,
    I'm using MDM 7.1 and have encountered a problem:
    I have a literal field named UpdateTime. And I want to import some data using import server. The source file is an .xml and the corresponding field has value like below:
    <UpdateTime>2009:03:26:15:49:28:187</UpdateTime>
    Now I met with value exceptions in import server saying cannot convert this field. Neither can I import it via import manager. In the "Map fields/values" tab, the time has not mapping when I click "automap". The "converted value" is <null>.
    Could anyone give me a hint on how I could resolve this problem - should I change the source data format, or should I have some special configurations in import server? When using MDM 5.5, the import server seems fine with such format.
    Thanks a lot!
    Angela Zhang

    Ravi,
    Thank you so much for your reply!
    Yes, it looks like a bug...so I'm trying to using the operator. But on problem: the target field is literal time type, to which the operator doesn't work (only numeric or text field has operators).
    So I guess to by-pass my problem, I now have only two ways:
    1> to change the PI outbound xml data format and make the time field apply to the target format.
    2> to change the target field type and make it a text or numeric....
    Do you know any other way that I can try without changing the current design? It's not just because of my curiosity, but such deisgn changes do will impact my project...since the problem is found during our upgrading from 5.5 to 7.1...
    Thanks a lot!
    Angela

  • Why does 'Find My Friends' show arrival time based on PCT rather than GMT

    Both my iPhone is set on GMT (British Summer Time) my Macbook Pro is set as GMT (British Summer Time) and the location I have arrived at is in the UK. Yet the 'Find My Friends' alert shows I arrived several hours before I did in fact the same time that it would have been on the West Coast of America.

    I have never gotten this to even send me 1 email.   Sorry for the useless comment but I'd like to get notified on updates for this one.

  • Date and time convertion into timestamp

    hi gurus,
    i have a function module ztimestamp
    in that import PARAMETERS parameters are
    parametername  type ref type  defaulttype
    I_BEGDA         TYPE  D         SY-DATUM
    I_BEGTM         type    T          '000000'
    I_ENDDA         TYPE  D           SY-DATUM
    I_ENDTM         TYPE T          '235959'
    MY REQUIREMENT IS I HAVE TO CONVERT THIS IMPORT PARAMETRS INTO TIMESTAMP(DATE,TIME)
    AND THAT TIME STAMP SHOUL GIVE APPLICATION SERVER TIME.
    HOW CAN WE CONVERT THIS ONE ?
    FOR GOOD ANSWERS I WILL GIVE GOOD POINTS.
    THANKS
    RK

    hi gurus,
    i have a function module ztimestamp
    in that import PARAMETERS parameters are
    parametername  type ref type  defaulttype
    I_BEGDA         TYPE  D         SY-DATUM
    I_BEGTM         type    T          '000000'
    I_ENDDA         TYPE  D           SY-DATUM
    I_ENDTM         TYPE T          '235959'
    MY REQUIREMENT IS I HAVE TO CONVERT THIS IMPORT PARAMETRS INTO TIMESTAMP(DATE,TIME)
    AND THAT TIME STAMP SHOUL GIVE APPLICATION SERVER TIME.
    HOW CAN WE CONVERT THIS ONE ?
    FOR GOOD ANSWERS I WILL GIVE GOOD POINTS.
    THANKS
    RK

  • Time converter 12 hr to 24 hr

    hi to all...
    can anyone please help me how to do converting 12 hr time format to 24 hr format?
    please..thanks in advance..

    Hi,
    You can use FM HRVE_CONVERT_TIME to convert time to 24 hour format.
    Pass B in TYPE_TIME parameter and time you wish to convert to along with AM/PM in INPUT_AM_PM parameter.
    Regards,
    Ni3

Maybe you are looking for

  • How to allow multiple users login to a MAC PRO without interruption?

    I have a mac pro, which runs Yosemite, (2013 module) to be used as a server. However, I have difficult to let multiple users to use the mac simultaneously. Objective:     One person uses the mac directly on his desktop, while the others to login remo

  • How to programatically de-skew PDF files

    Hi,            Is there any Acrobat SDK function, using that we can perform deskew of PDF files programatically. thanks in advance. palaksha

  • Software Updated to 10.4.6, no just a black RESTART screen at Start up

    Big trouble with the upgrade to 10.4.6. Went through software update and it appeared to be goig fine until the error that the pkg had to be reinstalled because of an error. Then clicked off that and computer hung. Waited 20 minutes with no results (a

  • Bill to address in AR

    I need to find Bill to address with customer names as View: When i try i am getting duplicates ::: Can some one show me the missing link???? CREATE OR REPLACE VIEW XX_PARTY_NAMES_V (CUSTOMER_NUMBER, PARTY_NAME, ADDRESS_LINE_1, ADDRESS_LINE_2) AS SELE

  • Where can I download free custom shapes por photoshop?

    Hi, I can't find where on the adobe site I can download additional custom shapes. I remember doing it before but I can't seem to find it anymore. Can anyone help me?