The old Date Timestamp question

Hi,
In my prog I store the Date and Timestamp of a test result. I use them to populate a JTree. The JTree is populated according to the date and the timestamp gives me the test time. I have two methods that extract the Date and Timestamp and store them in a HashMap:
HashMap<Integer,Date>
HashMap<Integer,Timestamp>
My problem is that I need to extract the date from the Timestamp in order to populate the tree correctly. Meaning that I want to add a child to a node relevant to its date.
Example:
2006-05-05 (Date) 2006-05-05 16:28:09.093(Timestamp)
2006-06-05 (Date) 2006-06-05 16:44:09.093(Timestamp)
Would populate the tree:
2006-05-05
|-> 6:28:09.093
2006-06-05
|->16:44:09.093
The child nodes arent populated correctly.
Your help is appreciated

You may need to remember that the division of a timestamp into date and time is dependant on the time zone, and by default the time zone where you're running the program will be used. (Midnight being at different times in different places).

Similar Messages

  • My 2 TB Time Capsule's memory is full because it will not automatically delete old files as it is supposed to, so it is giving me zero backup of my two computers now.  How can this be fixed so my Time Capsule deletes the old data and saves the new?

    My 2 TB Time Capsule’s memory is full because it will notautomatically delete old files as it is supposed to, so it is giving me zerobackup of my two computers now. How can this be fixed so my Time Capsule deletes the old data and savesthe new?
    Neither my local computer consultant nor I have been ableto change any of the settings in Time Machine to correct this problem.  Working with the choices in the TimeMachine, there does not appear that there is any way to change the frequency ofthe backups either, so, after a year has elapsed, the time capsule is full, andmy only choice appears to be to erase all the current data on the Time Capsuleand start over, something that I do not want to at all let alone repeat on anannual basis.  My questions are:
    What can be done to have my Time Capsule delete old filesas it is supposed to do, so it has memory available to allow my computers toback up? 
    Is this a software problem that can be fixed online or isdoes this require a mechanical fix of defective hardware?

    How much data is being backed-up from each Mac?  (see what's shown for Estimated size of full backup under the exclusions box in Time Machine Prefs > Options).
    Is there any other data on your Time Capsule, besides the backups?
    Most likely, there just isn't room.  Time Machine may be trying to do a very large (or full) backup of one or both Macs, and can't.  Since it won't ever delete the most recent backup, there has to be enough room for one full backup plus whatever it's trying to back up now, plus 20% (for workspace).
    Also see #C4 in Time Machine - Troubleshooting for more details.

  • ALV refresh with the Old Data

    Hi All,
    I have a question with OO ALV. I have an Editable ALV output which contains around 10 fields. In the output the User can Edit/Insert/Delete the Records, and on the application tool bar I have a button (CHANGE)by which the user can swtich between the change and display mode of ALV.
    Once the ALV list is displayed, when the user click on change the output is open for Editing. Lets say the user deletes the record, and again clicks on the change(which should take to display) by giving the message "Changes made will be lost" and the old data should get displayed.
    The logic i followed is,
    1. displayed the ALV.
      CALL METHOD gr_grid->set_table_for_first_display
        EXPORTING
          it_toolbar_excluding = gt_exclude
          is_layout            = gs_layout
        CHANGING
          it_fieldcatalog      = pt_fieldcat
          it_outtab            = pt_outtab[].
    2. when I click on the change button, the ALV is set for Edit using
            CALL METHOD gr_grid->set_ready_for_input
              EXPORTING
                i_ready_for_input = 1.
    lets say, now the record in the output is deleted, and I clicked on Change again, which should take me to display with the old data.
    can you help me in displaying the old data.

    It works good for me.
    I copied the program BCALV_EDIT_01 to Z program and add the required logic. Backup of the table after the ALV display
        gt_backup = gt_outtab.
    Refreshing the ALV table display in the perform SWITCH_EDIT_MODE
    *§3.Use IS_READY_FOR_INPUT to fetch current substate of editable cells.
      IF g_grid->is_ready_for_input( ) EQ 0.
    *§4.Use SET_READY_FOR_INPUT to switch between the substates.
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 1.
      ELSE.
    *------ ADD Begin
        message I398(00) with 'Data not saved.!'.
        gt_outtab = gt_backup.
        g_grid->refresh_table_display( ).
    *------- ADD end
        CALL METHOD g_grid->set_ready_for_input
                         EXPORTING i_ready_for_input = 0.
      ENDIF.
    Regards,
    Naimesh Patel

  • How to view the old data in a column if that column is dropped or rename

    Using workspace manager I am not able to track the old data of a column which is dropped.
    I have tried by using import and export features that Workspace manager have.. But import is not working properly in this case. And savepoint option is work with DML operation not with DDL.So, I want help in this matter
    Thanks In Advance

    No way even in 10g. You should build another DB and import your exported data.
    then you can get data from this new DB.
    SQL>create table t5 as select object_id,object_name,created from all_objects where rownum<20;
    Table created.
    SQL>select  current_scn from v$database;
    CURRENT_SCN
    7724122625
    SQL>desc t5
    Name                                      Null?    Type
    OBJECT_ID                                          NUMBER
    OBJECT_NAME                                        VARCHAR2(30)
    CREATED                                            DATE
    SQL>alter table t5 rename column OBJECT_ID to oid;
    Table altered.
    SQL>desc t5
    Name                                      Null?    Type
    OID                                                NUMBER
    OBJECT_NAME                                        VARCHAR2(30)
    CREATED                                            DATE
    SQL>alter table t5 drop column created;
    Table altered.
    SQL>desc t5
    Name                                      Null?    Type
    OID                                                NUMBER
    OBJECT_NAME                                        VARCHAR2(30)
    SQL>select * from t5 as of scn 7724122625;
    select * from t5 as of scn 7724122625
    ERROR at line 1:
    ORA-01466: unable to read data - table definition has changed

  • My iTunes account no longer has everything on my iPod-5th gen. I want to put everything on my iPod on my iTunes on my new laptop without losing new purchases that are on the iTunes account or the old data on the iPod.

    My iTunes account no longer has everything on my iPod-5th gen. I want to put everything on my iPod on my iTunes on my new laptop without losing new purchases that are on the iTunes account or the old data on the iPod.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • TS1474 I synced my iphone to an older computer, and the iphone data was replaced by the old data from the computer. How do I get my newer data back?

    I synced my iphone with an older computer to update the computer, but the iphone ended up with all the old data (phone numbers, etc).  How do I get the newer data back?

    Connect to iTunes on the computer you usually Sync with and Restore...
    http://support.apple.com/kb/HT1414

  • Help!! Trying to writing an array to a file without having to rewrite the old data every time.

    Hey Everyone,
    I have a vi that takes a 2D array and writes it to an xml file. The purpose for this is to characterize the pathloss through a dowkey 10x10 matrix at varies frequencies. I use this program to create a look-up table for the switch matrix so when I conduct one of my automated tests I can obtain an accurate measurment. The problem with this is I am taking about 299 data points per switch matrix combination leading me to over 32000 data points in the look-up table. The reason I use xml is because each data point needs a header so I can parse through the look-up table with another one of my vi's when I need that pathloss. What I am trying to fix is that when my vi writes to a file it writes one array at a time to save memory space. When it writes it rewrites the old data then the new data. As the number of data points increase so does the lag time to write to the file. By the time I am done it takes about five hours to fully write to the file. Does anyone know of a way to write continuesly write to a file without having to rewrite all of the old data? Attached is my vi for writing to the file, my vi for searching through the file, and an example of one of my look-up tables.
    Thanks,
    Dustin
    Solved!
    Go to Solution.
    Attachments:
    Find Array_TestStand.vi ‏22 KB
    Write to XML.vi ‏21 KB
    Pathloss_Array_tests.zip ‏149 KB

    dlovell wroteoes anyone know of a way to write continuesly write to a file without having to rewrite all of the old data?
    The only way to do that is to only append to the end of your file.  This would probably require some rewriting of your header information.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • My Macbook drive was replaced. If I sync my IPod Touch I'll lose all the old data on my IPod. Can I restore my iPod data to my computer?

    My Macbook drive was replaced. If I sync my IPod Touch I'll lose all the old data on my IPod. What do you do when you buy a new computer or have a new hard drive?  Can I restore my iPod data to my computer?

    See this article for details: How to back up your data and set up as a new device
    Or do this:
    Make sure your Mac is authorized in iTunes. Disable autosync in itunes, connect your ipod, right click on it in the device list and choose backup.
    This will save data, pictures and settings to itunes. See what's included in this backup here: http://support.apple.com/kb/HT1766
    Transfer your purchases the same way to copy all apps and bought media from the Store to your MacBook.
    Set up at least one contact and event on your computer to be able the merge your calendars and contacts after your ipod got wiped during the first sync.
    The rest of the data can be restored from the backup you made.
    Restoring: http://support.apple.com/kb/HT1414
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0

  • I have quicken 2000 for mac on an old mac and wish to upgrade to a new laptop running snow leopard.  Quicken 2006 on my new laptop runs, but will not recognize the old data qif files.  What version of quicken for mac will recognize files from 2000?

    I have quicken 2000 for mac on an old mac and wish to upgrade to a new laptop running snow leopard.  Quicken 2006 on my new laptop runs, but will not recognize the old data qif files.  What version of quicken for mac will recognize files from 2000?  Or, is there a special procedure I should be following?

    can't open Quicken 2000 files in classic mode on new MacBook Pro version 10.6.7

  • Bought the new iphone and tried to restore it to my old iphone settings. It synced some of the old data onto it, but then it froze and continues to. It says to restore it but I'm afraid to lose my contacts. Will the contacts be lost?

    Bought the new iphone and tried to restore it to my old iphone settings. It synced some of the old data onto it, but then it froze and continues to. It says to restore it and erase everything, but I'm afraid to lose my contacts. Will the contacts be lost or will they be there when I sync it back up?

    Hello timotim56,
    This can be achieved by removing the device via iCloud.com
    iCloud: Remove your device
    http://support.apple.com/kb/PH2702
    Cheers,
    Allen

  • Upload Demand Data adds up to the old data for SAP SPP

    While uploading demand data using csv files, it adds the demand values again if uploaded for same part- same time- location again.
    Do we an option in the data upload process, where in we can configure it so that it overwrites the old data and add the new data.

    Hi Bhargav ,
    When you are repetitively load the same data, there exists the requests in  request tab page of Manage Data Targets which  are active and again you are loading the same data with different request ,hence it gets added ,
    If you don't want then you need to delete this old request and then load the data or in InfoPackage in Update Tab page you can select the delta update or full update option .
    Regards ,
    Digambar

  • IDOC capturing the old data from Vendor master instead of modified data

    Hello Friends,
    Could you please guide me on the below issue  ?
    Vendor master was changed with the address being modified at 1300 system time.   => change log shows as 1300
    Payment run and IDOC generation ( RFFOEDI1 ) was executed at 1400 system time.  =>  IDOC created time as 1400
    but  , Still the  IDOC captured the old vendor master address data onto the IDOC .
    this is very strange to me and no idea how this can happen.
    thanks
    Raghu V
    Edited by: Raghunandan Vasudevarao on Jan 27, 2011 11:29 AM

    Moderator message: I am sorry but I had to remove the "correct answer" as it was not correct.
    It is well possible to remove the purchasing view via archiving, since archiving of vendor masters is divided into 3 activities: archiving purchasing view, archiving company code views, archiving general data.
    Of course there are preconditions: you cannot archive purchasing data view if you had already created orders. In that case you have to archive the orders first.
    See the network graphic,  in SARA enter object FI_ACCPAYB, then click the icon for network.
    In that particular case you would even create inconsistencies if you delete a table entry.
    And before you delete table entries you should in general know about the relationship of tables.
    Just thinking that a vendor master is LFA1, LFB1 and LFM1 is much to short. Goto DB15, enter FI_ACCPAYB (this is the archiving object) in the lower part and see how much tables are returned. These are all tables that can have data if you maintain a vendor master.
    Now check all those tables if they have a relation to LFM1 and if they contain data
    what will happen if you delete the vendor despite of existing orders? you probably get a dump when you access the purchase order.

  • How to recover the old data

    Hi all, i got a new iPhone, i had tried to restore data from the old iPhone to the new one. Unfortunately, before restoring the data i forgot to copy some importance documents and pictures from the new one. so after restoring, those documents are lost, anyone know how to recover those data? thank you very much

    If those documents are not contained in any backup, then you cannot recover them.

  • After erase and install, is the old data still recoverable?

    Hello,
    I'm doing an erase and install on a mini that I want to sell. Can I be sure that the old files are gone? After an erase and install can someone use a disk recovery program to get old files? Do I have to use Disk Utility to zero the drive?
    Thanks
    Bob

    Here's a series of steps to prepare the computer for sale:
    Follow these instructions step by step to prepare a Mac for sale:
    First, back up the data:
    1) Shut down all Virtual PCs. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    2) Clone to an external drive using Carbon Copy Cloner.
    Next, prepare the machine for the new buyer:
    3) Deauthorize the computer in iTunes! Deauthorize both iTunes and Audible accounts.
    4) Remove Open Firmware passwords
    5) Turn the brightness full up and volume nearly so.
    Install a fresh OS:
    6) Insert the OS X install CD/DVD.
    7) Restart the computer while holding down the C key to boot from the CD/DVD.
    8) Run Disk Utility from the file menu and erase the internal hard drive (optionally zero all data).
    9) Install OS X.
    10) Reboot the computer.
    11) From the welcome screen, you can skip the registration step by typing command-Q.
    12) When prompted, create an account (it will be an admin account).
    13) From your new admin account, configure networking.
    14) Then use Software Update to bring your system and all of it's applications up to date.
    15) From Disk Utility, repair permissions on the new volume.
    Now delete the account you just created:
    16) Boot from a different volume (e.g. a firewire drive, if available)
    17) Clean up the image using the following terminal commands:
    prompt> rm /Volumes/<imagevol>/var/db/BootCache.playlist
    prompt> rm /Volumes/<imagevol>/var/db/volinfo.database
    prompt> rm -r /Volumes/<imagevol>/var/vm/swap*
    18) Now you can get rid of the admin account you used to set up the machine Use the terminal:
    prompt> nicl -raw /Volumes/<imagevol>/var/db/netinfo/local.nidb -delete /users/<admin>
    prompt> rm -r /Volumes/<imagevol>/Users/<admin>
    prompt> rm /Volumes/<imagevol>/var/db/.AppleSetupDone
    19) Shut down and ship it to your buyer. When they get it, it will boot to the Welcome screen just like a factory Mac, except that it's better because it's completely up to date.

  • How to extract in the ALV output the old data using EXTRACT

    Dear Friends,
                I have requiremnt where the user executes the report -
    using REUSE_ALV_GRID_DISPLAY  FM.  On the output
    i have given an option to user to edit values on the output. So user will edit the values and updating  to the data base this
    the functionality which we have given to the custom report till now . Now the user came back and asking to provide a SAVE
    option on the ALv output so that before updating the total records to the database he can re edit the values which he
    has entered previous day . To do this functionality i have read  in ALV documentation using the EXTRACT- INCLUDE vex01top.       
    I have added this but iam not getting exactly how to do this option when the user saves on the ALV output how can he retrive back the  saved data on to the output again( i.e on the ouput screen) using the Extract functionality . If any body has done this
    do help me . I would like to know should we maintain any custom table for this,for saving the records when user press
    save button? .
    Thanks & Regards
    Madhuri.

    > i have read  in ALV documentation using the EXTRACT- INCLUDE vex01top.       
    I don't know where you got that. You have to define your own GUI status (first, copy it from standard status STANDARD_FULLSCREEN of function group SLVC_FULLSCREEN) with your button, and define as follows:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'USER_STATUS' EXCLUDING rt_extab.
    ENDFORM.                    "set_pf_status
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.
    IF r_ucomm = 'SAVE'.
    ENDIF.
    ENDFORM.
    > I would like to know should we maintain any custom table
    Of course. Create your own custom table. Where else do you want to store data?

Maybe you are looking for

  • How can I get rid of white bar at top of desktop? MacBook Pro 10.5.8

    Hello, There is a 4" blank (or white) bar at the top RIGHT of my desktop, to the left of the Spotlight magnifier icon. The bar blanks out all of these drop-downs:  Open Time Machine Preferences, Detect Displays/Display Preferences, Open Bluetooth Pre

  • Hard drive failure in purchased computer with Adobe original disks -how to uninstall and reinstall in my name

    I have purchased a Mac computer with the original boxed disks for CS6. The hard drive has failed, and the disks are still registered in the original owner's name. I have emailed the person to ask if they can have the program deactivated on that compu

  • Problem to open files

    I can not open files (tiff, jpeg ...) in photoshop by double-clicking or by dragging and dropping (the alert is: "The document could not be opened. Photoshop can not open files in Adobe Photoshop JPEG file format") I can open just with the open menu.

  • External monitor with closed clamshell without mouse

    Hi, I use MacBook Pro with a non-Apple monitor (via VGA adapter) which is easily detected and performs screen extension and mirroring well. I have wireless keyboard from Apple and pen & touch tablet from Wacom, both connected. When I close the lid, t

  • How to delete Folders and Files older than 10 day ?

    If I use this below command, I am able to delete only the files and files in sub-folders older than 10 day, forfiles /p "D:\Testing\Sample" /s /d -10 /c "cmd /c del /s /q @file" Please help... Thanks