Date value, have a strange behavior

Hi people, I am facing a strange situation in 11.2.0.3 EE 64 bit:

SQL >! uname - a

SunOS < hostname > 5.11 11.1 sun4v sparc sun4v

SQL > np_dn_range desc;

Name                                      Null?    Type

----------------------------------------- -------- ----------------------------

DN_START NOT NULL VARCHAR2 (18 CHAR)

ACTIVATION_DATE NOT NULL DATE

SQL > select ACTIVATION_DATE from the np_dn_range where DN_START = 528717163931;

ACTIVATION_DATE

----------------------

54890110070000

SQL > SELECT TO_CHAR (ACTIVATION_DATE, ' dd/mm / yyyy:hh24 - mi - ss') from np_dn_range where DN_START = 528717163931;

TO_CHAR (ACTIVATION_

----------------------------

00/00/0000:00-00-00

This should not show as 10/01 / 5489:07:00:00? If I do the same with other values, it works fine:

SQL > SELECT TO_CHAR (ACTIVATION_DATE, ' dd/mm / yyyy:hh24 - mi - ss') from np_dn_range where DN_START = 525549998051;

TO_CHAR (ACTIVATION_

-------------------

02/07 / 2013:07 - 00-00

07/06 / 2021:07 - 00-00

Of course the 5489 year is strange, it's an unexpected value. This value is not strange really because of this behavior, also it does not show if I publish the following:

SQL > select ACTIVATION_DATE from the np_dn_range where ACTIVATION_DATE > sysdate;

Oracle can make errors with math? This line just seems to come from an import of a database that was corrupt, blocks which can be the cause of this strange behavior?

Thank you.

Yes it is strange.

The first octet must be the century + 100, and the second byte must be 100 + year.

Then... (in the order of the those first followed by bad)...

120 113 is equivalent to 2013

120 121 equals 2021

46,11 equals (46-100) = - 54 and (11-100) =-89... and there is no year-54-89

Just check the other bits...

The 3rd octet is the month, if you have months of 7, 6 and 1... they are ok.

The 4th byte is the day, if you have days 2, 7 and 10... they are ok

The 5th byte is time + 1, so you have 8 for everyone, which means 07:00,... they are all ok

The 6th byte is the minutes + 1, if you have 1 for all those, which is 0 minutes... they are ok

Octet 7 seconds + 1, if you have 1 for everyone, i.e. 0 seconds... they are ok

So in terms of months to the time you have:

July 2 07:00

June 7 07:00

10 January 07:00

These part of all date/times are ok, it's just the century and year who were corrupt.

Now, if I force the same corrupted data in my version of the same table using my function of date gross and put my NLS_DATE_FORMAT the same as yours... I can reproduce your problem...

SQL > insert into np_dn_range values ('2345 ', raw_date (chr (46) |)) Chr (11) | Chr (1) | Chr (10) | Chr (8) | Chr (1) | Chr (1)));

1 line of creation.

SQL > alter session set nls_date_format = 'YYYYMMDDHH24MISS ';

Modified session.

SQL > select * from np_dn_range;

DN_START ACTIVATION_DAT
------------------ --------------
2345 54890110070000

SQL > select to_char (activation_date, "HH24:MI:SS DD/MM/YYYY) of np_dn_range;

TO_CHAR (ACTIVATION_
-------------------
00/00/0000 00:00:00

Your data are certainly corrupted, so everything you use to import or create these data is the problem.  It certainly isn't the way that Oracle is the treatment of the date, it's just the fact that corrupted data has been forced in.

Tags: Database

Similar Questions

  • When the query returns no data, I get a strange behavior

    Hi all!

    I use jDev 11.1.2.1.0

    I've implemented a .jspx a read-only table with a query at the top. The user can press the 'new' button and a popup with an editable form appears in the order the user to insert a new record.
    The user can press "ok" in the dialog box and the record is validated, or press 'cancel' and the restore operation is executed. Which is more or less all the features of the form.

    I have the following problem.
    If I have a query in a way so that no record is returned (so read only table is empty) and press the 'new' button, the validation of the VO are enabled in the form (that is, all the required fields are red). If I press cancel, the restore operation is performed, but there is a blank line in the table ready only. The user does not see the postings at this time, neither the blank line. BTY, if I try to delete this empty line, I 25039-Houston: RowNotFoundException, which makes sense, since there is no current record should be deleted. On re - interview, he disappears.

    This problem occurs only when there is no trace at all in the table.

    I can't understand...
    Any suggestions? Any clue?

    Thank you very much
    ~ apostolos

    In the popupCanceledListener have you tried to do a PPR manually using (.addPartialTarget) AdfFacesContext.getCurrentInstance ()?

    Thank you
    TK

  • Strange behavior with V$ PDB and CDB_SEGMENTS views of Oracle 12 c

    Hello

    I am trying to run a query between the CDB_SEGMENTS and the views V$ PDB on the container ROOT, but I have a strange behavior:

    SQL*Plus: Release 12.1.0.1.0 Production on Fri Sep 6 12:33:25 2013
    
    Copyright (c) 1982, 2013, Oracle. All rights reserved.
    
    
    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    
    SYS@orcl12c 06.09.2013> show con_id
    
    CON_ID
    ------------------------------
    1
    SYS@orcl12c 06.09.2013> show con_name
    
    CON_NAME
    ------------------------------
    CDB$ROOT
    SYS@orcl12c 06.09.2013> SELECT B.NAME
     2 , A.CON_ID
     3 , A.TABLESPACE_NAME
     4 FROM CDB_SEGMENTS A
     5 INNER JOIN V$PDBS B
     6 ON B.CON_ID=A.CON_ID;
    
    no rows selected
    
    SYS@orcl12c 06.09.2013 12:34:17> SELECT B.NAME
     2 , A.CON_ID
     3 , A.TABLESPACE_NAME
     4 FROM CDB_TABLESPACES A
     5 INNER JOIN V$PDBS B
     6 ON B.CON_ID=A.CON_ID;
    
    NAME CON_ID TABLESPACE_NAME
    ------------------------------ ---------- ------------------------------
    PDB$SEED 2 SYSTEM
    PDB$SEED 2 SYSAUX
    PDB$SEED 2 TEMP
    PDBORCL 3 SYSTEM
    PDBORCL 3 SYSAUX
    PDBORCL 3 TEMP
    PDBORCL 3 USERS
    PDBORCL 3 EXAMPLE
    ...
    
    23 rows selected.
    
    SYS@orcl12c 06.09.2013> SELECT *
     2 FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR('asa03y45g99zb'));
    
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    SQL_ID asa03y45g99zb, child number 0
    -------------------------------------
    SELECT B.NAME , A.CON_ID , A.TABLESPACE_NAME FROM
    CDB_SEGMENTS A INNER JOIN V$PDBS B ON B.CON_ID=A.CON_ID
    
    Plan hash value: 3590150304
    
    -------------------------------------------------------------------------------------------------------------------------------------------
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Pstart| Pstop | TQ |IN-OUT| PQ Distrib |
    -------------------------------------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | | | | 1 (100)| | | | | |
    | 1 | NESTED LOOPS | | 333 | 14985 | 0 (0)| | | | | |
    |* 2 | FIXED TABLE FULL | X$CON | 2 | 30 | 0 (0)| | | | | |
    | 3 | PX COORDINATOR | | | | | | | | | |
    | 4 | PX SEND QC (RANDOM) | :TQ10000 | 167 | 5010 | 0 (0)| | | Q1,00 | P->S | QC (RAND) |
    | 5 | PX PARTITION LIST AND | | 167 | 5010 | 0 (0)|KEY(AP)|KEY(AP)| Q1,00 | PCWC | |
    |* 6 | FIXED TABLE FIXED INDEX| X$CDBVW$e7cdf8a6 (ind:11) | 167 | 5010 | 0 (0)| | | Q1,00 | PCWP | |
    -------------------------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
     2 - filter(("CON_ID">1 AND "INST_ID"=USERENV('INSTANCE')))
     6 - filter("CON_ID"="CON_ID")
    
    
    25 rows selected.
    
    SYS@orcl12c 06.09.2013> select con_id,count(*) from cdb_segments group by con_id;
    
     CON_ID COUNT(*)
    ---------- ----------
     1 5795
     4 4397
     3 3923
     2 3401
    
    4 rows selected.
    

    Basically, I would like to display the container_name of segments within all PDB files, but the join between CDB_SEGMENTS and views of V$ PDB does not work (lines 20-25) pending the join between CDB_TABLESPACES and V$ PDB works very well (lines 29-34). I've posted the execution plan (lines 50-82).

    You have ideas about this behavior?

    Thank you in advance,

    Arnaud.

    Hello

    Not 100% sure that this is a bug or just something about the way containers works now - however this select seems to work OK:

    SELECT B.NAME, A.CON_ID, A.TABLESPACE_NAME

    OF CDB_SEGMENTS, V$ PDB B

    where to_char (B.CON_ID) = to_char (A.CON_ID)

    See if it works for you too?

    See you soon,.

    Harry

  • I get a strange behavior of the bar tabs and the address bar in Firefox 29,0 for Mac.

    I just installed Firefox 29,0 for Mac.
    I have a strange behavior of the bar tabs and the address bar with this new version.
    Instead of the address bar, I get two rows of symbols. And it is impossible to write anything in the address bar.
    (I add a screenshot, but I can't find a way to do it).

    Firefox has an RSS icon in the palette of the toolbar that you can drag a toolbar (but not on the location bar container).

    • Firefox menu button > Options/Preferences > toolbars
    • View > toolbars > customize
  • strange behavior

    Hello

    I have a strange behavior on the main screen of my application.

    My screen looks like this:

    1, 2, 3, 4 and 5 are bitmap with navigation button, click scope.

    I have a separate Thread for processing and this X thread updates the content of the label and label B.

    Whenever the thread call X function is update the function labels are running label.setText (newtext) on both labels.

    Stange behavior:

    When the x thread updated, the text of the labels (via the function Y) the emphasis is on button bitmap 1,2,3 or 4, the text of labels disappears and the screen looks like this:

    If we move to the development for bitmap button 5 or ListField labels updated successfully and the screen looks like this:

    I checked on debug only when the labels are updated that the text is not null.

    You have some ideas on what is the cause?

    Best regards

    Hello

    I found the solution for the strange behavior. I added a "HFMst.ivalidate ()"; on the function Y and that fixed the strange behavior.

    Thks simon_hain and arkadyz for your help.

  • exported jpg - strange behavior

    I have a strange behavior. When I export my raw or dng file in jpg format, the thumbnail jpg (in a standard windows Viewer) seems strange, the color is pink and washed out. However, the image full size seems well. On the back, normal jpg right out of the camera or sent to me looks good but the image full size in the standard windows even Viewer look dark and very contrasting.

    Does anyone have an idea of what's going on?

    Jim

    Jim,

    I guess that you are NOT exporting sRGB color space? The problem is that the thumbnails in LR are built in the same color as the JPG himself, and thumbnails in Windows are not color managed, but interpreted as sRGB. This leads to a representation of the colors wrong in thumbnails on any image exported from LR in one color space other than sRGB.

    I think that it will be a bug in LR and reported in the past (but I'm not 100% sure I know what the specs say about encodings of color required of a thumbnail).

    Beat

  • Strange behavior with the paths of the image

    All, morning

    I have a strange behavior going on with my image paths and I was wondering if someone might be able to identify what they think happens?

    On the relative paths of my model (.. / Images/example.jpg) work very well.

    However, on the pages of the child the same relative paths do not display images and so I had to remove the '... /' to get to work (ending up with Images/example.jpg).

    This is obviously not desirable that I'm going to manually tweak the child pages where the content of the combo box was copied directly from the model that works very well.

    Any ideas what might be up?

    Thanks in advance

    You have not yet entered the main directive of models, which is that only changes to the unchangeable in the model regions will be applied to the child pages.  If this were not true, then we could never put unique content on a child page!

    So - the diagram is as follows:

    1 create a template and save it.

    2. the model of a page child spawn.  The child page will be a 'identical' model copy.

    3. Add a unique content to the page of the child.  The child page is now more a copy of 'identical' of the model.

    4 change something in the part NOT MODIFIABLE from the model and save it - all child pages receive the change.

    5 change something in the EDITABLE model part and save it - no child pages do not receive the change.

    6 spawn a NEW page of the model, and it's still a copy of 'identical' AGAIN CHANGED model.

    See how it works?

  • Bar chart stacked - strange behavior on display null values

    Hi all

    I'm trying to graph a county of the end dates of the activities over several years by months grouped by project.

    The problem I have is that there is a gap of 3 months where none of the activities that I am tracking complete. The default value for the stacked bar chart is to ignore the columns with no data (in my case it October-December 2015).

    To view these any given month I went to properties graphic and ticked the box "Include Null values. At this point, I get a very strange behavior. Once this option is selected, the legend explodes, showing each project in the database regardless if it meets my criteria for analysis.

    Has anyone another considering that happen? I'm doing something wrong?

    If it's important I'm in the OBI 11.1.1.7.150120

    Thank you for your help,

    Kevin Wolfe


    Hello

    You have a filter on the list of projects you want to see?

    Based on the way you describe your analysis I guess you don't have any what filter on the list of projects, but some of the filters on the other dimensions/attributes and these filters were limiting the list of projects.

    If this is the case then what you see is not a weird behavior, but everything you've asked your analysis.

    "Include null values" is not limited to the time dimension, it fits any dimension of your analysis, so no filter on projects = all projects.

  • Loss of data of strange behavior.

    Hi all

    I am facing a strange behavior, I have a table and a form of the VO even pointing the same iterator in the binding.i to change in shape and support bean that I try to get the new values by using the code below:

    DCIteratorBinding iterIntegration = (DCIteratorBinding) UtilityBean.getBindings () .get ("Integration1Iterator");

    Line = iterIntegration.getCurrentRow ();

    getAttributes

    but I get the old values. even if I try to commit before using:

    OperationBinding operationBinding is getBindings () .getOperationBinding ("Commit");.

    operationBinding.execute ();

    the form is loaded with the old values of the table.

    Thank you

    In test form to define the components (inputText, selectOneChoice..), autoSubmit = 'true '.

  • 2.1 RC1 - strange behavior when you change the data in the table

    I recently found a new strange behavior of the SQL Developer. On a small table or a table with a filter where all the data is loaded, but not all lines can be displayed on the screen, trying to change the data in the table. When I confirm the editing with the key enter, Developer SQL jumps always until the end of the data. Quite confusing and boring. The cursor seems to remain in the field that I have edited, then moving upward or downward line force SQL developer to this line.

    Appears not to be the case when all the data are loaded instead of punch, but if you force Developer SQL to load all the data, I can reproduce this strange behavior.

    Sven

    Bug 9205959 is fixed.

    -Rambeau

  • [MAF - AMPA] Strange behavior of the MAF with REST service

    Hi MAF Experts.

    I just noticed that there is a strange behavior in my application of the MAF. The first loading of the page, amx:page does not make its contents (of REST). However if I kill the app and relaunch the app, content appears.

    Pattern:

    1. Start of the CRG App
    2. Opening of session
    3. Dashboard (the content is rendered)
    4. Go to any other aspect (lets say a list of products)
    5. Open product list (content do not get returned)
    6. Kill the MAF application
    7. Start of the CRG App
    8. Dashboard (the content is rendered)
    9. Go to the product list
    10. List of products (content gets rendered)

    I put a few breakpoints on EntityCRUDService and RestPersistenceManager.

    So far it return the list of entities and display the correct data (from watches in debug mode)

    Last thing I noticed is the red color below. She defined the EntityList with the new value of REST (This displays a correct value).

    TaskExecutor.getInstance (.execute (isDoRemoteReadInBackground ())

    , () -> {

    Auto Sync all actions pending first, pass false for inBackground because

    We want to process actions pending before the reading distance

    getDataSynchManager (.synchronize (false));

    The list of entities < E > = executeRemoteFindAll();

    If (entities! = null)

    {

    When an error occurs (for example server is not available, the method returns the value zero)

    setEntityList (entities);

    }

    });

    Any suggestion?

    All the rest service are configured with AutoQuery = true in the persistence - mapping.xml

    See you soon,.

    Hendry

    Hendry,

    Thanks your testcase, I was able to understand the problem.

    It turns out that MAF 2.1 has problems dealing with the advanced way in which AMPA running background tasks with the help of a thread in all of features.

    We have slightly modified the implementation in AMPA to use one thread per function and now the update issue is resolved. I sent you a link to new construction.

    We will publish the new generation soon on GitHub so that others can benefit in the same solution.

    Steven Davelaar,

    Oracle Mobile A-team.

  • Strange behavior while making the table operation DOUBLE... !

    Hello

    Can we do DML/DDL operation on table DOUBLE?

    To know the answer, I have done below the operation and found a strange behavior...

    -run 5 times...
    INSERT INTO DOUBLE
    VALUES ('P');

    commit;

    Select * twice;
    o/p-
    MODEL
    1 P
    2 P
    3 P
    4 P
    5 P

    ---------------------------------
    updated double
    MODEL of value = "K";
    commit;

    Select * twice;
    o/p-
    MODEL
    2 h
    2 P
    3 P
    4 P
    5 P

    Odd: 1 single line update... Why? I was updating all the lines.

    If I run new update of command like below...

    updated double
    set MODEL = 'K', where dummy = "P";
    commit;

    Select * twice;
    o/p-
    MODEL
    2 h
    1 h
    3 P
    4 P
    5 P

    STRANGE: Now next updated record with 'K'... like that, if I run 5 times this o/p is as below...

    MODEL
    2 h
    1 h
    6.
    4 K
    6: 00
    -------------------------------------
    REMOVE double; -This also has data of delting 1 by 1 row... Why?

    Can anyone tell me about this operation of behaivor?

    Please provide any information about the DML/DDl operation on DUAl

    Rgds,
    PC

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:7955478831730544:P11_QUESTION_ID:1562813956388

    Tom says:

    Let me start by saying:-DOUBLE is owned by SYS. SYS is the owner of the data dictionary,
    so DOUBLE fits in the data dictionary. You must not modify the data dictionary
    through SQL ever - weird things can and will happen - you are just a few of
    them. We can do a lot of strange things happen in Oracle by updating the data dictionary.
    It is recommended, supported or a very good idea.

    Double is just a convienence table. You do not need to use it, you can use anything you
    Here you are. The advantage to double is the optimizer includes double is a special line, a
    column table - when it is used in queries, it uses this knowledge during the development of the
    plan.
    ...
    the optimizer includes double is a special, magical table 1 row... It's just the way it works. If all goes well
    you reset double back to 1 row after your tests, or you've just totally broken your database!
    .. .dual = magic. Dual is a table of a line but with more than 1 or less is
    dangerous. You update the data dictionary. You should expect naturally very bad
    things are happening.

  • Strange behavior of Tomcat

    Hi all
    I'm working on an application that sends HTTP requests that have XML RPC and then receives the response and analysis. It worked great, except for the newly added application which gives an incomplete response from the server. The strange thing is that the response is finished when I send the application for the first time after deployment (e.g. restart tomcat), otherwise, the answer is always incomplete.
    Here is the method that send readings in the response (called in doGet (HttpServletRequest request, HttpServletResponse response)):

    public String sendUCIPRequest (String xmlRequest) throws IOException {}
    DataOutputStream out = null;
    InputStream inputStream = null;
    Servleturl URL = new URL (UCIPConstants.airUrl);
    URLConnection servletconnection = servleturl.openConnection ();
    servletconnection.setDoInput (true);
    servletconnection.setDoOutput (true);
    servletconnection.setUseCaches (false);
    servletconnection.setDefaultUseCaches (false);
    servletconnection
    .setRequestProperty ("user-Agent", "UGw Server/3.1/1.0");
    servletconnection.setRequestProperty ("Host", "hqminsatAuth");
    servletconnection.setRequestProperty ("Content-Type", "text/xml");
    servletconnection.setRequestProperty ("Content-length", String
    .valueOf (xmlRequest.length () + 4)
    + " ");
    System.out.println("length:"+String.valueOf(xmlRequest.length() + 4));
    servletconnection.setRequestProperty ('permission',
    "Basic U3lzQWRtOlN5c0FkbQ =="); "
    out = new DataOutputStream (servletconnection.getOutputStream ());
    out.writeBytes (xmlRequest);
    out. Flush();
    out. Close();
    inputStream = servletconnection.getInputStream ();
    Byte [] bf = new ubyte [9100]; a 9004
    inputStream.read (bf);
    Response string = new String (bf);
    Return response.toString (); THIS IS WHERE THE PROBLEMS BEGIN
    }

    When I System.out.println (sendUCIPRequest (xmlRequest)); The result is an XML file that is incomplete.

    Note: xmlRequset = ' <? XML version=\"1.0\"? " ' > ' +.
    "< methodCall > +.
    ' < methodName > GetAccountDetails < / methodName > ' +.
    "< params > +.
    "< param > +.
    '< value > ' +.
    "< struct > +.
    "< member > +.
    "< name > originNodeType < / name > ' +.
    "< String > < value > EXT < / string > < / value > +.
    "< / member > +.
    "< member > +.
    "< name > originHostName < / name > ' +.
    "< String > < value > IVR < / string > < / value > +.
    "< / member > +.
    "< member > +.
    "< name > originTransactionID < / name > ' +.
    "< value > < String > 32 < / string > < / value > +.
    "< / member > +.
    "< member > +.
    "< name > originTimeStamp < / name > ' +.
    simpleDateFormat.format (new Date()) + "<>< dateTime.iso8601 > value" + "< dateTime.iso8601 > < / value >" +.
    "< / member > +.
    "< member > +.
    "< Name > Numeroabonne < / name > ' +.
    "value < string > <>' + Numeroabonne [0] +" "< / string > < / value >" + //argument "
    "< / member > +.
    "< member > +.
    "< name > messageCapabilityFlag < / name > ' +.
    '< value > ' +.
    "< struct > +.
    "< member > +.
    "< name > accountActivationFlag < / name > ' +.
    "< value > < boolean > 1 < / Boolean > < / value > +.
    "< / member > +.
    "< member > +.
    "< name > firstIVRCallSetFlag < / name > ' +.
    "< value > < boolean > 1 < / Boolean > < / value > +.
    "< / member > +.
    "< / struct > +.
    "< / value > +.
    "< / member > +.
    "< / struct > +.
    "< / value > +.
    "< / param > +.
    "< / params > +.
    "< / methodCall > ';

    I tried to use buffer but it's the same thing!

    Help, please. I want to know if there is a bug in this code, or it is the server that is causing this strange behavior. Why exactly it runs successfully the first time. I use java 1.5 and tomcat 6. Thanks in advance.

    Read the input stream, taking note of the return value. For each reading that doesn't return - 1, add the bytes returned to a StringBuilder or StringBuffer, again taking into account the actual return value, without so far assume each reading fills the buffer. When you get - 1, convert the SB to a string. It comes in the same way as all other i/o in Java, nothing special, no magic.

  • strange behavior with script times

    Hi all

    I have strange behavior with one of my scripts, and I can't understand where is the problem.

    Before you post the code, here's the principle.

    My form has two fields of time: "Time of Injection" and "Post injection time.

    The script runs when the output of "injection time" event and look if the injection time is before time "post injection.

    Here is my code:

    //get the value of the field "Injection time"
    var injection = this.formattedValue;
    
    //create an new Date object
    var injectionTime = new Date();
    
    //split the string to get the HH MM and SS values of the formattedValue (HH:MM:SS)
    var injectionTimeHoursString = injection.substr(0,2);
    var injectionTimeMinutesString = injection.substr(3,2);
    var injectionTimeSecondsString = injection.substr(6,2);
    
    //parse the strings into integer
    var injectionTimeHoursInt = parseInt(injectionTimeHoursString);
    var injectionTimeMinutesInt = parseInt(injectionTimeMinutesString);
    var injectionTimeSecondsInt = parseInt(injectionTimeSecondsString);
    
    //set the integer values into my Date object
    injectionTime.setHours(injectionTimeHoursInt, injectionTimeMinutesInt, injectionTimeSecondsInt,0);
    
    
    //do the same for the other time field "Post injection time"
    var post = post_injection.post_time.formattedValue;
    var postTime = new Date();
    var postTimeHoursString = post.substr(0,2);
    var postTimeMinutesString = post.substr(3,2);
    var postTimeSecondsString = post.substr(6,2);
    var postTimeHoursInt = parseInt(postTimeHoursString);
    var postTimeMinutesInt = parseInt(postTimeMinutesString);
    var postTimeSecondsInt = parseInt(postTimeSecondsString);
    postTime.setHours(postTimeHoursInt, postTimeMinutesInt, postTimeSecondsInt,0);
    
    
    //calculate the difference between both
    var diff = postTime.getTime() - injectionTime.getTime();
    
    //if the difference gives a negative result, display a message, empty the fields and set focus
    if(diff<0) {
         xfa.host.messageBox("The time of injection should be sooner than the time of post-injection activity measure.\n\nPlease re-enter correct times.","Incompatibility of times");
         this.rawValue = "";
         post_injection.post_time.rawValue = "";
         xfa.host.setFocus(post_injection.post_time);
    }
    

    The code seems to run pretty well... except with certain values.

    If postTime is 12:00

    and injetion is 12:04

    I get the error message and everything, so it's OK

    BUT

    When postTime is 12:00

    and injectionTime is 12:08

    No message! as if the difference was not negative! (the difference is zero...)

    When I display the time in a messagebox, 12:04 12:04:00 GMT blah blah... gives but 12:08 gives 12:00:00 GMT etc...

    same problem with 12:09, but not 12:10 for example...

    Any thoughts?

    Thank you.

    Thank you, but since I'm used to javascript, I'll stick to it.

    I understand the problem. It's a javascript with the ParseInt method bug!

    Check here: http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C85006A6604

    parseInt("08") = 0.

    How to lose 2 hours for a stupid bug...

  • Strange behavior with the function «Help in command line»

    So I do a little playing with the opening of the files compiled help (.chm) with the command-line help feature, and I saw a strange behavior when trying to index multi-level access keywords. According to the documentation, if you set the 'Key' operation, you can enter a value for ' string to search for "to access this section. The more precise help that:

    If this string contains a keyword index, the string must match the key of the index as it appears in the help index file. To access a topic with a multilevel index keyword, enter the keyword of the top-level index, a colon and the keyword of the second level index. Do not separate the elements with spaces. For example, a chain of error codes: GPIB jumps about a subject with a keyword of top-level index of error codes and a second level keyword index of GPIB.

    All right, seems simple enough. Except that when I tried, I couldn't work, even with the example provided. I tried the following simple test:

    Opens the help file, but it opens to this page, not to the page ' error codes: GPIB "non-descript. I saw this in 8.2 and 8.6. Anyone have any success with access to a multi-level keyword?

    Note - side

    Curiously, the Index for the help lvconcepts.chm file looks like this:

    In other words, the input index text is just "GPIB", but the text that appears in the keyword field is "codes error, GPIB. I'm curious to know how this was accomplished. I decompiled the lvconcepts.chm file and watched the .hhk file, and it is not immediately obvious to me. (By the way, if you try to use "error codes, GPIB" it does not either).

    Hello

    Please contact National Instruments!
    It is a very strange behavior.  I tested out and seen the exact
    same results you are experiencing.  This was reported to R & D (AUTO ID # 130246) for further investigations.
    From what I can tell the a possible workaround solution that we have documented
    in the post of root Canal.  I can't continue to look into this in order
    to see if there is no other workaround solution or a reason why it is
    run in this way.  Thanks much for the feedback!  If
    you have any other questions on this subject please post them here.
    Have a great day!

Maybe you are looking for

  • Why Firefox 10 installation don't revert not to 3.6?

    I downloaded * and * version 10 about 5 times. I check in respect of aid, and it is indeed 10 version that is currently running. After a few days, I get a message that I need to restart Windows 7 to perform a previous update. When I do it, he complai

  • Can not put multiple PDF files into a single document no more.

    I was able to scan multiple PDFs into one document on my desktop. I can no longer. I have a printer Photosmart HP 6515 and Windows7 OS.  PS. just the other day I had someone remotely access my computer to fix a problem with MagicJack (computer phone)

  • recover windows vista business to windows 7 Professional

    So I was able to get Windows 7 Professional using an iso image. I worked and I did not buy it, or have a product key. Then I downloaded something and got invaded by possible viruses that turn me off and established Internet my spaz tab open. I manage

  • Where is the manual on how to replace the keyboard?

    I thought it would be a simple google search, but this is not the case.  Any combination of the words "replace t500 manual keyboard" or similar turns just messages from forums, so may I ask where I'm supposed to find it?

  • copy of windows

    Hello My problem is that I bought a net book with win8 installed on it. I bought in a store so the stuff everything seemed legal. But I have not received and installation packages. When I accepted the contract proposed by Microsoft, he says that it i