Fractions of seconds in NLS_DATE_FORMAT

Hi all,
Does anyone know what the date mask is to have hundredths of seconds? I've been trolling around the
net but I can't seem to find a list of valid masks.
I need to compare date/time values in Oracle with those in another database where the fractions are stored as .nnn
At present I've got NLS_DATE_FORMAT set as 'ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD HH24:MI:SS''';
What I really need is something the lines of
'ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD HH24:MI:SS.FFF''' ;
where FFF is the fractions.
I would even be happy to have the fractions all come out as .000
Is this possible?
Thanks
Dave

hi,
that all works fine using your example but... I'm extracting from v$logmnr_contents which is created by the logminer application.
This view contains a field called SQL_REDO which may or may not contain any date/time columns. e.g.
"delete from ARCH_RCPT_MAST where RCPT_NO = '45510' and CREATE_DT = TO_DATE('2008-01-10 09:25:13', 'YYYY-MM-DD HH24:MI:SS') and USER_NAME = 'MARKL' and STATUS = 'POST' and STATUS_DT = TO_DATE('2008-01-10 11:17:41', 'YYYY-MM-DD HH24:MI:SS') and INV_STATUS IS NULL and RECV_LOC = 'IN' and RECV_DOCK = '1' and PTWY_RULE = 'DEFAULT' and INSP IS NULL and LOCATION IS NULL and TRAILER_NO IS NULL and BOL_NO IS NULL and AUX_1 = ' 45510' and AUX_2 = '193455' and AUX_3 IS NULL and AUX_4 IS NULL and AUX_5 IS NULL and AUX_6 IS NULL and AUX_7 IS NULL and AUX_8 IS NULL and AUX_9 IS NULL and AUX_10 IS NULL and UPLD = 'Y' and UPLD_DT IS NULL and UPLD_CNT IS NULL and CARRIER IS NULL and CHKIN_RULE IS NULL and CLOSE_DT = TO_DATE('2008-01-10 11:17:41', 'YYYY-MM-DD HH24:MI:SS') and WHO_CLOSE = 'GG' and POST_DT = TO_DATE('2008-01-10 11:17:41', 'YYYY-MM-DD HH24:MI:SS') and WHO_POST = 'GG' and FIRST_TRANS = '8659969' and LAST_TRANS = '8659969' and WHO_CREATE = 'MARKL' ";
This string needs converting to ANSI SQL so it can put pushed into a SQL server database so all I can really do is parse out the Oracle functions such as TO_DATE etc
I have a trigger on the login which forces the date data in the coulmn SQL_REDO to come out as YYYY-MM-DD HH24:MI:SS
Unless I'm missing something I don't see how I can use to_timestsamp functions on a large char column such as this.
Regards
Dave

Similar Messages

  • ESS: DropDown diappears after fraction of seconds

    Hi Experts,
    We are facing a strange issue in ESS. Our client is using EP 5.0 and internet explorer version 6.0.
    In few of the ESS applications when users click on the dropdown button, the dropdown list appears for a fraction of second and then disappears. We have tried deleting the cookies, temporary internet files from browser but it doesnt help.
    Any help in resolving the issue is highly appreciated.
    Thanks

    In which application? Have you tried using IE 7 and 8? version
    cause IE 6 is old
    check the compatibility
    service.sap.com/pam

  • Fractions of Seconds in Date

    I am converting data from Sybase to Oracle. In Sybase my date field contains the month, day, year, hour, minutes, seconds, and fractions of seconds i.e. Jul 26 1999 5:12:04:000PM and Jul 26 1999 5:12:04:990PM. these two entries are causing duplicate entries in Oracle. Does Oracle store times in less than 1 second increments and if so, what is the date format to view them?
    Thanks,
    Veronica

    The DATE datatype in both 8i and 9i only supports resolution down to the second. 9i has a TIMESTAMP datatype which supports fractional seconds.

  • "Date/Time To Seconds" Function does not respond to "fractiona​l second" input

    The "Date/Time To Seconds" function (contained in the Fuctions\Programming\Timing - Palette) does not respond to the "fractional second" input (see attached example).
    Reimar Spohr
    Attachments:
    Date-Time To Seconds VI Example.png ‏18 KB

    Instead of creating a new post, you should have posted this in the original thread, where people already tried to help you. Please keep the discussion in that thread.

  • Changer les fractions de secondes sur cRIO 9104

    Bonjour,
    Voilà mon problème, je cherche actuellement à changer les millisecondes du timestamp de mon cRIO 9104. J'ai vu qu'il était possible de le faire via une dll sur les 901x targets mais bien sur cette méthode ne fonctionne pas sur le 9104. De plus je ne comprends pas pourquoi il est possible de lire les millisecondes sans pouvoir les modifier...
    Connaitriez vous une méthode pour faire ceci sur cette cible ?
    Merci
    Romain

    Bonjour Romain,
    Le TimeStamp est une information relative à la réference de temps de votre contrôleur, situé au niveau de votre cible cRIO (chassis+contrôleur). Le 9104 est un chassis et non un contrôleur.
    Quelle est la réference du contrôleur utilisé?
    Quelle est la nécessité concernant cette modification du timeStamp (faire du calcul, synchroniser...)?
    Cordialement,
    Rémi D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ...

  • How do I adjust my titles so they don't fade in and out? I have hundreds of photos/videos on screen for a second or so each, for a year-long birthday video, and I need the dates in my titles to be steady rather than fading in and out spastically.

    I have been working on a project since December of 2012 for my son's first birthday. Basically, it's a photo or quick video each day of his life so far. I used the "upper" title and made the titles not fade in and out, because that could give someone a seizure. The idea is a seamless title that ticks away each day. But in the new iMovie, it changed my settings, and I can't for the life of me find how to change them back.
    Now, each date flashes in and out, in and out, in and out. Fractions of seconds go by. It's really distracting and annoying.
    How do I get the titles to remain on screen and not fade in and out? I had it just how I wanted it, but now we're rapidly approaching my son's birthday, and the video is suddenly a mess.
    How do I fix this?

    I am working with the very same concept for my project and the auto fade in and out has messed everything up. If I hear or a fix I'll be sure to reply here to let you know!

  • How do I save an iPhone 4S that was dropped in water for just a few seconds?

    My iPhone landed in normal tap water and was in there onlyu for the few seconds it took me to get it out. I let it dry for a bit and tried to turn it on, the screen flipped open for a fraction of seconds and went black again. Then for a while I could see foggy glass on the phot-eye and the flash light was on. Now there is no more damp on the photo eye and no flashlight on, it won´t go on and nothing moves. I am not in the country where I bought it and cannot reach an Apple store easily. What do I do?
    Thanks!

    Pattisong wrote:
    I let it dry for a bit and tried to turn it on,
    You most likely shorted the battery doing that. Your warranty is now voided, so a third-party repair shop "might" be your best option. Although, if you go that route, you will forfeit the right to an out of warranty replacement. I doubt you can get an out of warranty replacement unless you go to an Apple store in the country of original purchase...cost would be US $199.
    Sorry, but your options just are not good.

  • Problem in converting the date format in Second's place

    I am developing an application using OAF in JDeveloper.
    I have to pass the current date from my page to a quary to filter the data.
    I used the following:
    String PresentDate=this.getOADBTransaction().getCurrentDBDate().toString();
    However it is sending a date like '2011-03-22 17:04:14.0'. Here if you see the seconds place, it has a fraction as well.
    I need to convert it by using TO_DATE(PresentDate, 'YYYY-MM-DD HH24:MI:SS')
    But because of the fraction in Seconds place, it gives an error.
    Can anyone help me to solve this problem?
    Thanks & Regards
    Hawker

    Hawker,
    Instead of that use..
    //Calling dateValue( ) does not include time.
    long sysdate = transaction.getCurrentDBDate().dateValue();
    Regards,
    Gyan

  • How to get MM:SS format in to seconds?

    I need to get MM:SS-format in to secs? How?

    Alexander_Wolff wrote:
    A second possibility is: go to the inspektor-panel and chooes format "duration". Pick the slider and set it to mm:ss.
    Now: pick the left edge of the slider and drag it to the right. Now the duration changes from "xx:xx" to "xx". This works with the right edge too. When you expand the slider you get "xx:xx:xx".
    Regards,
    AW
    AW,
    It is good to keep your suggestion in mind for those occasions when fractions of seconds aren't needed, and for when you want to stay in the Duration value type.
    Your suggestion and mine are quite different, but in some cases either may suffice.
    Jerry

  • TimeStamp with "seconds"

    Hi, I want to use timestamp datatype with seconds.
    please give me specific example thanks !

    TIMESTAMP data type stores date/time till fraction of seconds. It also stores timezone info.
    Please refer http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements001.htm for more info.
    E. g :-
    SQL> select systimestamp from dual;
    SYSTIMESTAMP
    13-MAR-12 02.21.04.442937 AM -04:00
    If you want to store date/time till seconds then "date" data type can do that as well.
    SQL> select to_char(sysdate, 'dd:mon:yyyy hh:mi:ss') from dual;
    TO_CHAR(SYSDATE,'DD:MON:YYYYH
    13:mar:2012 02:24:03
    HTH,
    ~Yogesh

  • Synchronisation of PCs using pulse per second

    Hello
    I would like to synchronise several Personal Computers and some external hardware using a Pulse per Second (PPS) signal. In this configuration one PC or the external hardware shall generate the PPS (PPS master). Other PCs and other hardware shall count the PPS pulses (PPS slave). All PCs shall count the fraction of seconds since the last PPS pulse with a resolution of 1ms or higher.
    To realise this PPS network, I consider the usage the NI Counter card PCI-6601/2. Could anyone answer a series of question please?
    Is it possible to configure the PCI card to count the seconds and milliseconds when the card generates the PPS?
    Is it possible to configure the PCI card to count the seconds and milliseconds when the card is triggered by an external PPS?
    Is it possible to configure the PCI card to generate interrupt pulses with a frequency of 100Hz when the PCI card is configured as PPS master? The interrupt pulses must be synchronous to the PPS. That means every 100th interrupt shall fall together with the PPS.
    Is it possible to configure the PCI card to generate interrupt pulses with a frequency of 100Hz when the PCI card is configured as PPS slave?
    How complicated is it to use this interrupt in a user application under Windows 2K/XP and Linux? Does the PCI card driver provide a simple mechanism like a blocking function call that returns when the PCI card generates an interrupt?
    I’m also open for other solutions for my problem.
    I consider a PCI card with a FPGA. I could implement the PPS logic very easily in VHDL. However, I don’t want waste time to get a PCI VHDL core running or writing software drivers to synchronise the applications with the PPS. Any useful comments would help.
    Thank you very much,
    Michael

    Hi tummigummi,
    It's probably best if you ring into National Instruments here in the UK.  That way we can answer your questions for you with more information and be better equiped to give you the advice you need.
    The number to call in is (01635) 523 545.
    Just ask to have pre sales support and you'll be put down to one of our support engineers (like me) and we can help answer your questions for you.
    Thanx
    AdamB
    Message Edited by AdamB on 07-24-2006 05:55 AM
    Applications Engineering Team Leader | National Instruments | UK & Ireland

  • Unable to display information message written inside badi

    Hi All,
    In customer creation i want to display Info message after pessing save button. I have written the message inside the badi. I can see my message in debugging mode in status bar, which on debugging mode off can't able to see. I tried with more than 25 scenarios got from SDN forum as well as suggested by someone.
    Please reply if u have implemented sucessfully the same kind of reqirement.
    Thanks in advance.

    Hi Keshav,
    I wrote message inside the method preset sale area of badi customer_add_data.
    The message ls "Message 'some text'  type 'I' "
    In debugging mode when the cursor reaches to my message then as soon as i press F5, this message get displayed in the status bar and with one more F5 it disappears.
    So like this i wrote that the message appears only in fraction of second that when without debugging mode i process the transaction it doesn't appears and i can't see this.
    Thanks.

  • Date / Time System fields - inconsistent

    This is a weird one...please bear with me
    Before I begin...note that this is not a problem that is difficult to fix, I'm just interested in better understanding why the system fields are behaving the way they are.
    We have 20 or so programs that use a function module to create a file header that includes a date/time stamp.  The programs also place a trailer with a date/time stamp that should match the one in the header.  However, the programmer used different system fields (after a GET TIME statement) to create the date/time stamp in the trailer.  On occasion, the date/time stamp comes out different. 
    Here's the code (sry about all caps):
      GET TIME.
      CONCATENATE SY-DATUM SY-UZEIT INTO BATCHID.
      CALL FUNCTION 'Z_YADAYADA'
           EXPORTING
                FILE_ID              = P_FILEID
                REFRESH_TYPE         = P_REFTYP
                START_PERIOD         = START_PER
                END_PERIOD           = END_PER
           IMPORTING
                STRING255            = OUTPUTSTRING
           EXCEPTIONS
                INVALID_REFRESH_TYPE = 1
                INVALID_BATCH_ID     = 2.
      ...sy-subrc check...
      TRANSFER OUTPUTSTRING TO P_FILE1.  <--header output
      CONCATENATE L_TRL BATCHID COUNT T_TOTAL SPACE
                  INTO OUTPUTSTRING SEPARATED BY L_DEL.
      CONDENSE OUTPUTSTRING NO-GAPS.
      TRANSFER OUTPUTSTRING TO P_FILE1.  <--trailer output
    inside function module *****
      CONCATENATE: SY-DATLO SY-TIMLO INTO DATESTAMP,
                   SY-SYSID SY-MANDT INTO MACHINE_NAME.
      CONDENSE: DATESTAMP, MACHINE_NAME NO-GAPS.
      CONCATENATE C_HDR DATESTAMP FILE_ID MACHINE_NAME
                  SY-CPROG ' ' REFRESH_TYPE START_PERIOD
                  END_PERIOD DATESTAMP
                  INTO STRING255 SEPARATED BY '~'.
      CONDENSE: STRING255 NO-GAPS.
    You can see that the function uses SY-DATLO and SY-TIMLO for creation of the header, while SY-DATUM and SY-UZEIT are used for the trailer.  What's wierd is that sometimes the trailer has a date/time stamp that is 1 second <b>greater</b> than the header, despite the fact that it is stored in the BATCHID variable <b>before</b> the header is created.
    Any help, references, explanations greatly appreciated (and rewarded with points)
    BMV

    Hi Brian
    Here is the related part from the weblog of ABAP expert Horst Keller. Hope it may help. For the full document, you can visit <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.wcm.compound.docs/library/uuid/f1391fc3-0301-0010-d384-fccd036f1c67">here</a>.
    The values of all system fields in this table are implicitly set when the program is started, every time a screen layout of a screen is sent, and when the internal mode is set. The GET TIME command explicitly updates the system fields, except for sy-dayst, sy-fdayw and sy-tzone.
    With the exception of sy-datlo and sy-timlo, all system fields refer to the local date and time of the current SAP system. The ABAP runtime environment clock is synchronized with the database server clock at regular intervals in order to calculate the local time of the SAP system. During the synchronization process, the ABAP runtime environment clock is set to the database server clock. Because this happens on all application servers in an SAP system, the ABAP runtime environment clock is synchronous with the clocks on all other application servers and with the database system clock, and thus shows the local time of the entire SAP system. The time zone on which the local time of an SAP system is based is the only entry in the database table TTZCU.
    The content of sy-zonlo is taken from the user master record of the current user. The values of sy-datlo and sy-timlo are calculated from sy-datum and sy-uzeit and from the time zone of the SAP system for the time zone in sy-zonlo. If the user master record does not contain a time zone, or if it contains an invalid or an inactive time zone, sy-datlo and sy-timlo are set to the values of sy-datum and sy-uzeit. All valid time zones are defined in table TTZZ.
    Is't the naming of sy-datum and sy-uzeit really geeky?
    Time Stamps
    The above system fields for date and time are not sufficient for many requirements of determining unique points in time: They represent local times and the values are measured in seconds. For more exact date and time determination, you use time stamps.
    A time stamp represents date and time in the form YYYYMMDDHHMMSS. YYYY is the year, MM the month, DD the day, HH the hour, MM the minutes and SS the seconds. There is a short form and a long form. In the long form, the format specified above additionally contains 7 decimal places for fractions of seconds, which allows for an accuracy of up to 100 ns. The maximum time resolution depends on the operating system of the application server and may be less.
    A valid time stamp must contain values whose date and time specifications before the decimal separator correspond to valid values for the data types d and t. Time stamps in this form are always considered as UTC (Universal Time Coordinated, basis for calculating worldwide time specifications; the UTC reference time is based on Greenwich Mean Time, GMT, but is not a time zone; it has no daylight saving time or summer time) time stamps when processed with the corresponding statements. You use the statement GET TIME STAMP to create a time stamp that represents the current UTC reference time.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • How to add chapters to exported Apple TV movies

    (The process works with QuickTime 7.4 and Final Cut Express 4.0)
    To add chapters to movies exported from FCE using the "Apple TV" preset in the Export menu:
    In a text editor, like TextEdit in the Applications folder, type your list of chapters.
    Make each item very short (preferably one word but no more than two or three words) and separate each item with a carriage return.
    Choose Format/Make Plain Text.
    Save the document as plain text.
    In QuickTime Player, choose File > Open File, select the text file, and click Open.
    Choose File > Export. In the Export pop-up menu, choose "Text to Text." In the Use pop-up menu, choose "Text with Descriptors."
    Click Options. In the Text Export Settings dialog, select "Show Text, Descriptors, and Time"; select "Show time relative to start of Movie"; and set fractions of seconds to 1/30.
    (The fractions really don't matter, we will change the value later)
    Click OK, then click Save to create a text file with descriptors.
    Open the exported list in your text editor, and open the target movie (formatted for Apple TV) in QuickTime Player.
    Choose Window > Show Movie Inspector.
    In QuickTime Player, drag the playhead on the timeline to find the first point in the movie where you want to begin a new chapter.
    Use the Right and Left Arrow keys to step forward or backward a frame at a time as needed. Note the current time in the Inspector window.
    In the text file, find the timeScale attribute and change to 24.46.
    Next, find the first chapter title and change the timestamp just before that chapter title to the time you noted in the Inspector window.
    Example: For a chapter called "one" that starts at 4 seconds, 21 frames into the movie, you would revise the text to look like this:
    (00:00:04.21)
    *{textBox: 0, 0, 50, 160}one*
    Ignore the textBox attribute.
    Repeat steps until you've identified all the places in the movie that correspond to the chapter divisions and you've entered the proper timestamps in the text file.
    Change the last timestamp (the one after the last chapter title in the text file) to match the duration of the movie.
    Save the text file.
    Open the text file in QuickTime Player.
    Choose Edit > Select All, choose Edit > Copy.
    Click in the target movie, make sure the playhead is at the beginning, choose Edit > "Add to Movie"
    QuickTime adds the text track to the movie.
    Choose Window > Show Movie Properties.
    In the Properties window, select the video or audio track you want to associate with the chapter track, and click Other Settings.
    Normally you would choose the main video track.
    (alternatively, choose audio track from the Chapters pop-up menu. If you have a movie with alternate subtitle or sound tracks, you can create multiple chapter lists in different languages and set the appropriate subtitle or sound track as the owner of each chapter list. The chapter list will change to match the selected language.)
    Select the text track.
    Deselect the check box for the text track so that it doesn't display on top of the video.
    The new track will still function as a chapter track.
    Save the movie as a self-contained movie.
    In the Finder, drag the movie to iTunes, and then Sync to Apple TV. The movie will play in Apple TV with Chapters!
    -- This is modified from a QT7.2 tutorial, thanks to Tom Wolsky for pointing me in the right direction --

    Thanks for explaining that in detail Mike.

  • My repaint() doesnt work

    Hope somebody can help. I had posted this qtn on another site and got a response pointing to a java sun site talking about paint in general. unfortunately did not help.
    the issue is as follows:
    Heres the problem
    Have this drawing application with menus and stuff. so i draw box/lines/ circle etc. and when the mouse is released, i add the positions etc to an array, in my paint program, i parse thru the array and show the stuff. Now whatever i draw, doesnt appear immediately (although i have a repaint() (also tried validate, revalidate and every command i have learnt/come across).
    funny thing is, if i press my alt key, the "file" menu option will appear to be selected, when i press escape, the drawing window gets focus and immediately all my drawings appear. So my question, how do i make it do that.
    Additionally (while i am on the roll here) in my menu option i have a File/New when this is selected, i clear the array and do a repaint(). that works beautifully and all the drawing are gone. but if i click on a icon (designated as "new") that wont do anything until i go thru that pressing alt (or switching to another application using alt+tab and then coming back to my paint program).
    Any ideas?
    To add further this is how my code looks
    there is a frame called drawingWindow (my highest level).
    got a container Container drawBoard = getContentPane(); which is added to my frame.
    i got menubar and toolbar created and added to the drawingWindow
    Then i got this class which contains the paintcomponent routine.
    JPanel drawingArea = new DrawGraphics();
    and this is added to the container.
    drawBoard.add(drawingArea,BorderLayout.CENTER);
    as i mentioned earlier: when i draw something, the repaint doesnt show the stuff immediately. instead i have to switch to some other applications that overlaps this java program and when i switch back i will see my paint.
    why so and how can i ever get it to work.
    Thank you in advance.

    The same kind of problem I was also having some time back but what i did was sounding funny to me, but i did it.... as there is no way.Just do resize kind of operation.
    After calling repaint method , just get the current size of window, set it to next size and again set it back to original size.Screen will flicker for a fraction of second.It was working very well to me.Maybe it will help you too.......

Maybe you are looking for