Is this a Date bug?

before
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html#before(java.util.Date)
public boolean before(Date when)
Tests if this date is before the specified date.
Parameters:
when - a date.
Returns:
true if and only if the instant of time represented by this Date object is strictly earlier than the instant represented by when; false otherwise.
Throws:
NullPointerException - if when is null.
==========================================================
try{
          String testDate = "02-01-3889";
          String beforeDate = "12-31-3887";
          // java bug
          Date dt = DateTest.getDateFromString( testDate , "dd-MM-yyyy" );
          Date beforeDt = DateTest.getDateFromString( beforeDate, "dd-MM-yyyy");
          System.out.println( testDate + " after: " + beforeDate + "\t" + dt.after( beforeDt ));
System.out.println( beforeDate + "after: " + testDate + "\t" + beforeDt.after( dt ));
     catch( ParseException ex ){
02-01-3889 after: 12-31-3887 false
12-31-3887after: 02-01-3889 true
The outcome doesn't match API description

A) I am not a rhino to have a thicker skin
B) There are other forums and venues for humor
C) If poster has no valid contribution to add, it
would simply be polite not to post anything.
I do hope all of us have a nice day.
Cheers!His comment was a gentle poke, hopefully helping you to see the problem. It was much better that calling you a moron who should not be allowed near a computer, which after your last comment may happen soon. The fact is your date format does not match the string you are parsing, unless we now have 31 months in a year.
~Tim
EDIT: I can't believe that <M0R0N> is blocked.
Message was edited by:
SomeoneElse

Similar Messages

  • When I enable imatch on my iPhone 4s it takes approximately 30 minutes before other data fills 13.2gb of usable data. This problem does not occur when I manually sync music to my phone. Is this a common bug, and if so; is there a fix?

    When I enable imatch on my iPhone 4s it takes approximately 30 minutes before other data fills 13.2gb of usable data on the phone. This problem does not occur when I manually sync music to my phone only when I access imatch. Is this a common bug, and if so; is there a fix?

    yes it is. you can sign out of itunes account then sign back in. use http://support.apple.com/kb/ht1311 to sign out.

  • If I am viewing a page with the words date or match, the words are hyperlinks to a dating website. This is not so if I view the same pages in IE and has not been picked up by Norton, Spybot or malware bytes etc. Is this a Firefox bug?

    If I am viewing a page with the words date or match, the words are hyperlinks to a dating website. This is not so if I view the same pages in IE and has not been picked up by Norton, Spybot or malware bytes etc. Is this a Firefox bug?

    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • ICS Calendar Widget Date Bug

    I'm running the .587 software release.
    Today is 10th September. I added a new calendar event for 25th September to my Google calendar (all OK). I have the calendar widget on my homescreen and it shows "No upcoming calendar events" (as it should as there are no events in the immediate future). If I tap on "No upcoming calendar events" it will show me my next event (the one on 25th September) -- all good so far.
    However, when I look at the details shown for this event it shows both the "From" and "To" times as "01:00, Thu, 1 Jan 1970"!!! (if I go through the Calendar app and not the widget the dates display properly as 25th September). This is extremely annoying, and it can also corrupt your calendar dates by replacing them with this 1970 date if you then go on to tap the "edit event" button.
    Please fix this bug!!!!

    Have you also tried with other calendar widgets to see if the same problem occurs? It's wise to try so your able to sort out what might be causing the issue.
    Try it out and let me know!
    What do you think about this forum? Let us know by doing this short survey.

  • Calendar adds an extra day when creating an event in ios 8.1.3. Is this a known bug?

    When i add an event using the calendar app in ios 8.1.3, it adds an extra day to the event when using a range of dates. I am able to recreate the problem. when entering the event i select a range of dates and confirm that it is what i want. after submitting, i verify and it has added an extra day at the end. Is this a known bug or am i on my own? Help please. this is annoying having to check each event after entering it.

    Ive reset, restored and this is the second phone. Thought it maybe a wonky screen that would shift it while setting dates. THe only thing I can think of is that I am syncing with google calendar, but it only happens when setting events in ios not if i do it from google website on desktop PC.

  • SSRS 2008 R2 is extremely slow. The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes. I have read this is a bug in SSRS 2008 R2. We installed the most recent patches and service packs.

    SSRS 2008 R2 is extremely slow.  The query runs in less than a second in the dataset designer but if you try to view the report it takes over 10 minutes.  I have read this is a bug in SSRS 2008 R2.  We installed the most recent patches and
    service packs.  Nothing we've done so far has fixed it and I see that I'm not the only person with this problem.  However I don't see any answers either.

    Hi Kim Sharp,
    According to your description that when you view the report it is extremely slow in SSRS 2008 R2 but it is very fast when execute the query in dataset designer, right?
    I have tested on my local environment and can‘t reproduce the issue. Obviously, it is the performance issue, rendering performance can be affected by a combination of factors that include hardware, number of concurrent users accessing reports, the amount
    of data in a report, design of the report, and output format. If you have parameters in your report which contains many values in the list, the bad performance as you mentioned is an known issue on 2008 R2 and already have the hotfix:
    http://support.microsoft.com/kb/2276203
    Any issue after applying the update, I recommend you that submit a feedback at https://connect.microsoft.com/SQLServer/ 
    If you don’t have, you can do some action to improve the performance when designing the report. Because how you create and update reports affects how fast the report renders.
    Actually, the Report Server ExecutionLog2  view contains reports performance data. You could make use of below query to see where the report processing time is being spent:
    After you determine whether the delay time is in data retrieval, report processing, or report rendering:
    use ReportServer
    SELECT TOP 10 ReportPath,parameters,
    TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
    TimeDataRetrieval, TimeProcessing, TimeRendering,
    ByteCount, [RowCount],Source, AdditionalInfo
    FROM ExecutionLog2
    ORDER BY Timestart DESC
    Use below methods to help troubleshoot issues according to the above query result :
    Troubleshooting Reports: Report Performance
    Besides this, you could also follow these articles for more information about this issue:
    Report Server Catalog Best Practices
    Performance, Snapshots, Caching (Reporting Services)
    Similar thread for your reference:
    SSRS slow
    Any problem, please feel free to ask
    Regards
    Vicky Liu

  • Number of address book contacts on MacBook Air using iCloud is one less than my other iDevices using iCloud.  Is this a known bug?

    Number of address book contacts on MacBook Air using iCloud is one less than my other iDevices using iCloud.  Is this a known bug?  I've checked for duplicates on my iDevices and I can't find any.  Additionally, I have wiped all the data from the Application Support folder of the address book and re-connected to iCloud, but it always shows 308 contacts instead of 309 found on iCloud and the rest of my devices.  Any ideas?

    Number of address book contacts on MacBook Air using iCloud is one less than my other iDevices using iCloud.  Is this a known bug?  I've checked for duplicates on my iDevices and I can't find any.  Additionally, I have wiped all the data from the Application Support folder of the address book and re-connected to iCloud, but it always shows 308 contacts instead of 309 found on iCloud and the rest of my devices.  Any ideas?

  • The DATA BUG of OVI 3.03 on E72, disgusting!

    Nearly at the same time at the afternoon today - 25 Jan. Many of the users of E72 found their New OVI Maps occured a serious problem. When they open the icon "My place" in GPS, the program halt and no response at all. Many of them think maybe it just be a problem of their own E72 or due to some collisions of the software they installed and even formate the phone or reinstall the OVI maps many times. But as I confrim on some forums,I make sure that this is a BUG of the software.
    First of all, I should declare the OVI maps and software I installed on my E72 were all download form official website maps.nokia.com and with newest verison.
    The Symptom is:
    1. when you open OVI maps and click the "my place"  icon the program halt unless you shutdown the program in task manager or restart the phone.  But if you click the "search" first only once, then all the functions will be ok.
    2. If you change the date to 24 Jan or 26 Jan, every thing is OK. And if you change the date to 15, 25 of anyother months if only the date contain "5", the problem will happen again.
    From this symptom, I can sure it is a DATE BUG of new OVI maps. I just CAN NOT believe NOKIA could made this stupid mistake. I hope NOKIA could fix it or update the software ASAP.
    Message Edited by joeye on 25-Jan-2010 11:00 PM

    Hi,
    We think we know the cause of this issue to be the welcome note localised to Latvian.
    From what we can tell from your firmware version, you are running a latvian varient. We are aware (and have fixed for the next release) that the welcome note, translated to latvian, was causing the application to crash.
    To work around this until the release is made available, please do the following:
    Change the device language, for example to English, and restart the Maps application. Once the application is started, you should then be able to exit the application, revert the language back to Latvian, and restart the Maps application without it Crashing.
    Please let me know if this resolves your issue.
    KR
    Chris
    Although i work for Nokia, my opinions are my own!
    Got a Maps query? Check our Maps FAQ's

  • Is this a PowerPivot Bug, or am I doing something wrong?

    I am working on a PowerPivot data model. I am having problems with 2 slicers that are not behaving as I would expect. I have double checked everything and I think I have done it right. So why don't they correctly show when there is no visible data based
    on the selection?
    I have created this video to show the problem.  I would appreciate any help, or advice if this is a bug.
    http://exceleratorcbs.com.au/files/slicers%20not%20working_edit.wmv

    Gerhard, thanks for your response.  In replying to you post below, I discovered some more information and "sort of" got it to work, but I still don't understand the issue.
    If you look at my video at 2:11 mark, you will see the following structure
    Sales_Data => Branch_State => State
    The sales data is at the branch level.   Each Branch is only in one state.  The state table exits because it is connected down one path to Sales_Data but via another path to Weekly_Promotions.  The weekly promotions
    are only stored at the State level, not the branch level, so I need this structure.
    So if I use the State field from the Branch_State table for my slicer, it works - that is why I just discovered when I was replying here.  But I don't know why the higher level State only slicer doesn't work. 

  • We have an iphone 5c that is not keeping the correct time whether using the auto update or manual selection.  is this a os bug?

    iphone 5c is not updating its time properly using set automatically.  is this an os bug?

    Hi TheLongRider,
    Thanks for visiting Apple Support Communities.
    I recommend this advice if the incorrect time is being set automatically:
    Follow these steps. Test after each step to see if the issue is resolved.
    Ensure that the version of iOS on your device is up to date.
    If the option to enable date and time automatically is available, turn it on. Tap Settings > General > Date & Time.
    Ensure that your time zone is set up correctly. Tap Settings > General > Date & Time > Time Zone.
    If the incorrect date, time, or time zone is being set up automatically on the device, please notify your cellular provider. In the meantime, tap General > Date & Time and turn off Set Automatically. Then set the appropriate time and time zone manually.
    If you are setting the time manually and it is still incorrect, this advice may apply:
    Note: If you find that your device's time is incorrect after you sync with your computer, your computer's time may be incorrect. Verify the computer's time in System Preferences > Date & Time (you may want to select the checkbox to set the computer's date and time automatically).
    You can find this information here:
    iOS: Troubleshooting issues with date and time
    http://support.apple.com/kb/ts3920
    Cheers,
    Jeremy

  • Nokia X6 *NEW* date bug.

    This is a new possible bug which I've just spotted on my Nokia X6 16GB, which is slightly worse than the date incorrect bug described here: /t5/Xseries/X6-Date-incorrect/td-p/684385
    Instead of the date on the phone reverting back by 24 hours, when I switched on my X6 just now, the date reverted all the way back to 01/01/2010 
    This is the 1st time I've seen a X6 have its system date automatically shoot all the way back to 1st Jan 2010.
    Bug detected on firmware version 31.0.004
    If you have encountered this problem, please post it here.

    This is also associated with the other date bug, I have seen this as well as losing a day.

  • [svn:fx-trunk] 10182: This is a bug fix for DropDownList.

    Revision: 10182
    Author:   [email protected]
    Date:     2009-09-11 16:15:57 -0700 (Fri, 11 Sep 2009)
    Log Message:
    This is a bug fix for DropDownList.  When Label changed from a GraphicElement to a UIC it started blocking the mouse events from the anchorButton inside of a DropDownList.  To fix this, I've just disabled the mouse of the labelDisplay in the DropDownListSkin
    QE notes: -
    Doc notes: -
    Bugs: SDK-23054
    Reviewer: Jason
    Tests run: checkintests, DropDownList
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23054
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/DropDownListSkin.mxml
        flex/sdk/trunk/frameworks/projects/wireframe/src/spark/skins/wireframe/DropDownListSkin.m xml

  • In logic Pro, when I open up an audio track and load an audio file, there is no sound. I will finally get a sound out of one of the audio tracks after opening at least 5 of them alternately. Is anyone familiar with this kind of bug? It's really frustratin

    In logic Pro, when I open up an audio track or software track and load an audio file/loop or software file loop, there is no sound. I will finally get a sound out of one of the audio or software tracks after opening at least 5 of them alternately. Is anyone familiar with this kind of bug? It's really frustrating as this takes much time to complete work.
    os x, Mac OS X (10.6)

    I'm not sure I follow your words Fuzzynormal. You've helped by offering the insight that my issue in Logic Pro 9 is not a bug but a feature. But fell short of enlightenment by being a judge of character and of how one should interact in this forum. You insinuate that I haven't tried to solve the issue on my own when in fact I have. These forums are always my last resort. You further suggest that I am complaining. This is not a complaint. It is a genuine issue that I cannot figure out. Then you think that Brazeca is holding my hand and being a nice guy. Brazeca is helping people like me who might not be as adept at using Logic Pro as probably you are.This community forum was established to raise questions, answers and dicussion to help Apple's customers better undertand their operating systems and related issues. You are doing a disservice by not contributing positively and by trying to make this forum what you want it to be. You may have all the time in the world to try figuring out stuff but we are not all like you. We all have different schedules and different levels of understanding. And that is what this forum is for - to help people move forward. If you can't contribute positively then keep silent. And by the way, you say to "read the words that are printed down to explain to you how that works" what words are you talking about? Why don't you be of some help instead of trying to own this forum. 

  • Project explorer doesn't show callers for .rtm (run time menu) files (is this a confirmed bug?)

    Maybe I was to quick to report this as a bug... I was unable to find anything related to it at my normal sources of information. Does someone has exeperience with it?
    I have a work-around and this is included  in the description :
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=6776 (message 25)
    ** Original post **
    When a library (.lvlib) that contains a file with a run-time-menu (.rtm) file is removed from the project, but there is still a file that uses this .rtm file, both the .lvlib and all of it's vis and the .rtm file are displayed in the project Dependencies.
    For the Vi's the callers can be found by 'Find->calllers'. For the .rtm file this always results in 'No items found' but the .rtm file remains in the Dependencies (as it should since it is still used).
    Finding the .rtm file can be hard since it is only loaded at run-time and not at edit time(?). If someone encounters this issue, a working method:
    - rename the rtm file (so it cannot be found)
    - open the vis that you suspect are using this file AND try to edit the run-time menu. When this vi uses the run-time menu a warning will appear (cannot load rtm file, using default menu instead)
    Kind regards,
    Mark

    Dear Mr. Beuvink,
    thank you for your reply. It seems that a while back this problem has been reported to our R&D group. The request (CAR) has ID; 41579. There is the following statement in this CAR: the caller vi is in memory or not. When a caller vi is in memory, rtm files will currently never report the vi as a caller. This confirms the behavior you are seeing.
    I'm sorry to say I don't have a solution at this moment, at this moment they are busy fixing this problem. You can look this up in future release notes by searching on the CAR ID I mentioned.
    If you haven any questions, please don't hesitate to contact me.
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands

  • Is this a JOGL bug with GLJPanel, a driver problem, or what?

    I've been trying to eliminate a problem I've been experiencing with my WorldWind Java (WWJ) application and I think I've finally taken a step torward finding the root cause, but I'm not sure whose problem it is yet or who to report it to, so I thought I'd start here and work my way up; if it can't get solved here, maybe it's a driver issue.
    The issue goes something like this:
    (Note: this only occurs when the -Dsun.java2d.opengl=true flag is set.)
    I have a GLJPanel on my primary display that works beautifully. I drag that panel onto my secondary display (slowly) and it disappears. Poof. If I position the panel halfway between screens, I can get about half of the panel to render on the secondary display, but any further than that and it disappears. I tried this on a Frame and with a GLCanvas as well and got different results: in a Frame, if I dragged the Panel over and then dragged it back into the primary display, it would disappear on the secondary display, but reappear on the primary display once it was dragged back. With the GLCanvas, I didn't have any issues.
    It's fairly simple to recreate this on my computer by using a WorldWind example that extends ApplicationTemplate and just adjusting ApplicationTemplate to use WWGLJPanels.
    However, I went so far as to reproduce the problem with a plain old GLJPanel:
    import com.sun.opengl.util.Animator;
    import java.awt.GridLayout;
    import javax.media.opengl.GL;
    import javax.media.opengl.GLAutoDrawable;
    import javax.media.opengl.GLJPanel;
    import javax.media.opengl.GLCapabilities;
    import javax.media.opengl.GLEventListener;
    import javax.swing.JFrame;
    public class TrianglePanel extends JFrame implements GLEventListener {
        public TrianglePanel() {
            super("Triangle");
            setLayout(new GridLayout());
            setSize(300, 300);
            setLocation(10, 10);
            setVisible(true);
            initTriangle();
        public static void main(String[] args) {
            TrianglePanel tPanel = new TrianglePanel();
            tPanel.setVisible(true);
            tPanel.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        private void initTriangle(){
            GLCapabilities caps = new GLCapabilities();
            caps.setDoubleBuffered(true);
            caps.setHardwareAccelerated(true);
            GLJPanel panel = new GLJPanel(caps);
            panel.addGLEventListener(this);
            add(panel);
            Animator anim = new Animator(panel);
            anim.start();
        public void init(GLAutoDrawable drawable) {
            GL gl = drawable.getGL();
            gl.glClearColor(0, 0, 0, 0);
            gl.glMatrixMode(GL.GL_PROJECTION);
            gl.glLoadIdentity();
            gl.glOrtho(0, 1, 0, 1, -1, 1);
        public void display(GLAutoDrawable drawable) {
            GL gl = drawable.getGL();
            gl.glClear(GL.GL_COLOR_BUFFER_BIT);
            gl.glBegin(GL.GL_TRIANGLES);
            gl.glColor3f(1, 0, 0);
            gl.glVertex3f(0.0f, 0.0f, 0);
            gl.glColor3f(0, 1, 0);
            gl.glVertex3f(1.0f, 0.0f, 0);
            gl.glColor3f(0, 0, 1);
            gl.glVertex3f(0.0f, 1.0f, 0);
            gl.glEnd();
            gl.glFlush();
        public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {}
        public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {}
    }If it helps, the video card I'm using is a Quadro NVS 140M.

    steffi wrote:
    This is a bug that I'm seeing in Apple's new MobileMe service and I believe they are making use of the System Messaging Server product. (Sun Java(tm) System Messaging Server 6.3-6.03)I can't comment on what Apple may or may not be using ;)
    Specifically I have an email that's MIME HTML and what I observe is that lines >999 chars are being truncated so in my case the nested table doesn't render correctly because a whole chunk of the HTML itself on this line has been truncated.The email client generating the message is broken and Messaging Server is 'fixing' the email by truncating the line to the maximum line-length as per the standards.
    Refer to "2.1.1. Line Length Limits" in http://www.faqs.org/rfcs/rfc2822.html
    Regards,
    Shane.

Maybe you are looking for