Compare times (not only date! minutes too!)

is there already a method to compare two dates and to return the date
"space" between them? I mean, there's the compareTo(Date d) thing but it returnes the number of days as an int..
help?! :D

Calendar. Or do it yourself by using the longs.

Similar Messages

  • Compare time slot in dates while making drag and drop..

    Hi,
    The drag and drop is working fine without conditions, but I have to check the time slots between two dates. If the time of both date are same it should not dropped else it can drag and drop. I use the code below, but not getting executed according to condition.. Please provide suggestion and ideas to get it executed..
    declare
    l_date_value varchar2(150) := apex_application.g_x01;
    l_primary_key_value varchar2(150) := apex_application.g_x02;
    l_full_time varchar2(150);
    l_time_a varchar2(150);
    l_time_b varchar2(150);
    begin
    select
    ltrim(replace(to_char(resv_start_date,'hhmiAM'),'00',' '),'0')||','|| ltrim(replace(to_char(l_date_value ,'hhmiAM'),'00',' '),'0')
    into l_full_time
    from reservation
    where resv_no=l_primary_key_value;
    select SUBSTR(l_full_time, 1 ,INSTR(l_full_time, ',', 1, 1)-1) into l_time_a from dual;
    select SUBSTR(l_full_time, INSTR(l_full_time,',', 1, 1)+1)into l_time_b from dual;
    begin
    if l_time_a<> l_time_b then
    update reservation set RESV_START_DATE = to_date(l_date_value,'RRRRMMDDHH24MISS') where Resv_no= l_primary_key_value;
    end if;
    exception when others then
    Raise_application_error(-20001,'Error'||SQLERRM);
    end;
    end;
    Thanks..

    First 3 .as are the component
    source. in the last test.mxml file i have written the drag and drop functionality.
    can any help me?? please

  • Compare time depednt master data for two key dates in a report?

    Hello all,
    We have a requirement where we want to see the difference in master data at particular key dates (time dependent master data).
    Like if employee has State = OH till yesterday (12/01/2008) and today it is changed to State =KY (12/02/2008 to 12/31/999) loaded in BW which is time dependent.
    So basically if you run the query for Key date 12/01or before you will see OH as state and if you run query for key date 12/02 or further you will see KY.
    We want to create a report where we want to list employees and compare in two columns basically the previous value and the current value. So input would be two key date variables and the report would look like
    Employee                  Key date 1(state)                  Key date 2 (state)
    Employee1                         OH                                  KY   
    Has anyone done this before, can someone help me doing this?
    Thanks,

    Hi ,
    For this scenario , Can you please create variabale ( From value -- to value ) in the key figure date .And by using the time period in the varaible u can get the employees for both the states ...
    Hope this helps out
    thanks
    PT

  • "Show logging" displays the switch UP time not the Date & time

    Hi,
    i have cisco 2950 switch, when i type the show logging, what ever event has happend i am getting like this "26w6d: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down" but it is not showing the date & time when the event has occured, so every time i need to check the show version & have to see the switch up time & then i need to calculate. is there any configuration has to be done where i should get the information of the date & time in place of switch up time eg. like this...
    "Sep4 4:15: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to down"

    what you could do is to enable timestamping if not already done so.
    2950(config)# service timestamp debug datetime msec
    2950(config)# service timestamp log datetime msec
    or you can use SNMP to provide traps of the 'events' that occur on the device.
    these SNMP traps will provide the date, time and trap.
    what version IOS on that device? have you enabled timestamping? have you upgrade lately? perhaps an upgrade could be of assistance. i'll verify the operation on some 2950s i have to confirm if i have the same issue or not and what version is being used. i'll post the result when available.

  • Strange rendering all the time - not only on Firefox.

    The image has strange strypes all over it and they look a little like normal screen for a short time. It happend after I sent my laptop Acer Aspire 4745 Z - 4754. Thanks for your attention.

    hello, since this is not a problem related to firefox, we probably won't be able to help you there. you'd have to contact the manufacturer's support for your device (also try to update your graphics drivers). thank you for your understanding!

  • Filter a list-views on page by Date and Time column, not only by Date (Connected Webpart)

    I have a task - create a page and display on it all lists/libraies with documents of team meetings. Every meeting has a documents and another information, which is storing in the same lists/libraries  on website as another meetings. Additionally there
    is a field "MeetingDate" (type: DateTime), which help to indetify a meeting documents.
    I have added all on one page and my custom connected webpart (IWebpartRow interface), which help to filter all views on page by field meeting date. It send a date to another webparts on page, and user see information only for this date.
    It works fine, but the problem is, that it used only DATE (without time) and i need now to filter all by date and time. 
    Unfortunately, i noticed that i cannot filter items by date with time in the standard list too. Please see my screenshot.
    My question is: may be i should use another interface (not IWebPartRow) that to send 2 values (1 - date, 2 - time) and filter all by 2 columns. Is it possible?
    Unfortunatelly i didn't find something like this. I found only a solution to build url like 'http://sp2013/SitePages/Homepage.aspx#InplviewHasha2528afc-50c3-4d5e-aae9-682400976409=FilterField1%3DDatum-FilterValue1%3D2015%252D02%252D27-FilterField2%3DCustomTime-FilterValue2%3D11%253A00'
    , but it looks not so good ..(
    from MSDN forum...

    Hi,
    Per my understanding, you might want to display all the specific documents in a page, they can be filtered by values of a Date and time column.
    A possible solution I will provide is that, we can create custom visual web part to display all these documents. In the code behind, run a query with CAML to retrieved all the
    documents with the specific date and time, then generate a view of hyperlinks that points to these documents.
    In this way, we can combine the filter component with the data display component into one web part, with the help of CAML query and Object Model, it would not be a tough job to
    implement such a solution.
    More information about CAML and Object Model:
    https://msdn.microsoft.com/en-us/library/office/ee536691%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I restore my data from iCal? I didn't make any backup, but I use  time machine with an external HD. I deleted iCal when I deleted my gmail account. I have tried to restore, but I can only restore the iCal software and not the data.

    How can I restore my data from iCal? I didn't make any backup, but I use  time machine with an external HD. I deleted iCal when I deleted my gmail account. I have tried to restore, but I can only restore the iCal software and not the data.

    So what is your question?
    If you forgot your encryption password:
    Warning: Make sure it's a password you will remember or write it down for safekeeping. If you encrypt an iPhone backup in iTunes and forget your password, you can't restore from backup and your data will be unrecoverable.
    If you can't remember the password and want to start again, you must perform a full software restore and chooseset up as a new device when iTunes prompts you to select the backup from which to restore.
    The above comes from here:
    http://support.apple.com/kb/HT4946

  • Date and time not showing correct whe imported to Power query

    Hi,
    I have an Excel list that I imported to another Excel file via Power query. A few of the imported columns contains date and time, for example 2013-11-09 20:19. When imported to Power query this will show as 41587.84652777778 and only dates/times with zero
    hours and minutes will show correctly. When trying to change the data type to Date/Time it returns an error for all cells containing hours and minutes.
    I use a Swedish version of Excel that uses a different time format compared to standard excel and also uses a , as a delimiter between date and time compared to the . used as delimiter in standard excel. Don't know if that can explain
    this problem?
    Brgds,
    C

    I updated Power query earlier this week, so it should be the latest version. When I created the sample file now the problem appears, so if it is a bug it has not been solved.
    You find the sample file on the link below. 4 sheets with some info on the problem, the data, the query result and one sheet with the data and query result as pictures as it shows in my version of Excel, I guess it will look somewhat different when you open
    the file due to local date/time settings.
    Appreciate feedback on what you find!
    //Caj
    https://skydrive.live.com/redir?resid=94DF9214E3A6D4!107&authkey=!AEuAXX_kPC7yKaI&ithint=file%2c.xlsx

  • How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.

    How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.
    When I start a backup. Time Machine says "Oldest Backup: None; Latest Backup: None", so it seems like it should do a complete backup, but it only does a partial. 

    Hi I'd like to jump in here. Your app showed me this:
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 749.3 GB Disk used: 453.81 GB
              Destinations:
                        Plastic Wrapper [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 64
                        Oldest backup: 2013-07-24 23:25:11 +0000
                        Last backup: 2013-11-17 01:40:47 +0000
                        Size of backup disk: Too small
                                  Backup size 999.86 GB < (Disk used 453.81 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
              /sbin excluded from backup!
              /usr excluded from backup!
              /System excluded from backup!
              /bin excluded from backup!
              /private excluded from backup!
              /Library excluded from backup!
              /Applications excluded from backup!
    Aside from the size of my backup drive, which I will increase at some point, I'd really like to have time machine backing up all system folders, especially Applications. How to I reset this hidden exclusions?
    Thanks,
    Darcy

  • Schedule lines should not change 3 weeks time from MRP date

    Hi
    Is there any specific customisation required to get following results in case of schedule lines.
    1) MRP should not change/adjust the already send delivery schedule lines  which are lying within 3 weeks time from MRP date
    2) System should not allow to book the GRN unless the messages / print out has been generated from the system in case of scheduling agreement.
    Thanking you
    Shantakumar
    09944009752

    Hi,
    There are 2 possibilities:
         1. use MRP fixing using planning time fences, this is done by putting the relevant settings in the MRP1 view of the material master
         2. use the firming options of the scheduling agreement, these are set per material number that is entered in the scheduling agreement.
    The GR can only be posted for schedule lines that have been processed aka output generated.
    Regards,

  • When I open a new windox in Firefox 3.6.10 on Windows XP, it opens not only a new window, but all my existing tabs reopen in the new window too--how do I fix this?

    Whenever I open a new window in Firefox, it not only opens a new window with a new tab, it also opens all my existing tabs a second time in the new window. This has been happening for several days. Closing Firefox and rebooting doesn't solve the problem.
    A related problem is that if I close all tabs and close Firefox, then reboot and re-open Firefox, all the tabs that were closed re-open too.
    This is new behavior in Firefox in my experience.

    Firefox opens the home pages in a new window, so if you want to open a new window blank then you need to set the home page to about:blank
    You can check the startup setting:<br />
    Tools > Options > General > Startup: "When Firefox Starts": "Show my home page" | "Show a blank page"

  • How can I find out the overall time and not only the time of a single clip?

    I have set up two cameras in one room. Both cameras record the same thing from different perspectives at the same time. I have found an interesting scene for video 1 (recorded by camera 1). Now I would like to find the time at which the interesting scene takes place in video 2.
    However, I have not seen any way to get displayed, at what time the scene starts in relation to the total length of the video (e.g: scene starts after 5 minutes from total 10 minutes).
    The indicated time refers only to a part of the clip and not to the overall project, even if a special clip is not selected. Does anyone know, how I can find out the time?

    Go to Settings>iCloud>Storage & Backup.  It will be shown just below the Back Up Now button at the bottom.

  • Hello  I bought my wife a new MacBook Pro, in setting it up for her, I took her Time Machine external drive to migrate onto the new machine but her old MBP not only was on 10.6, it was my old machine which I was still Administrator for.  i plugged in the

    Hello
    I bought my wife a new MacBook Pro, in setting it up for her, I took her Time Machine external drive to migrate onto the new machine but her old MBP not only was on 10.6, it was my old machine which I was still Administrator for.
    i plugged in the external drive to start the migration process after entering her name and username from the old machine which gave me the options on transferring the old data over.
    I also unchecked the Administrative end that had my info hoping that ONLY her data, files, etc., would be the ones sent over to her new machine which I wanted her to be the ONLY Administrator for. All went like clockwork until the restart.
    Normally the screen should show the username and only need the password but both entries were blank, as in ‘Other’ sign in option available only. I entered her name and password, nothing….used her username and password, nothing. Used my old Administrator name and password, NOTHING!
    I tried defaulting to factory settings from the Restore feature but it directs me to notify Apple. I tried in Terminal to change the password, nothing. I tried to boot from MY external drive and it doesn’t recognize it. I tried to even use my external drive which actually has the Mavericks upgrade, nothing!
    Basically I can only get the startup screen which isn’t accepting the username/password or the Restore feature which doesn’t offer any options helpful!
    Please, how do I start from scratch and start over here? Or simply change the Administrator name and password so I can proceed with everything thats already on there? I wish I could even boot from another drive but no luck on anything!

    First, on the old machine, make your wife's account an admin one. Log into it and delete yours. Then, update the TM backup. Finally, use Internet recovery mode, ⌘⌥R, erase the HD, and restore the OS. One first boot, follow the steps outlined in Pondini's Setup New Mac guide.

  • I paid for exportpdf and everytime i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable.  how can i export only form fields that were filled in?

    i paid for exportpdf and every time i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable. Some forms can't be saved so having to log in and only use webtool to upload a saved pdf won't work.
    as well, how can i export only form fields that were filled in if I can get pdf to save to computer?

    Hi kstine,
    I can see why that would be frustrating! Have you tried selecting Stayed Signed In underneath the Adobe ID and Password boxes when you try to log in?
    What did you use to create the PDF form? If you used FormsCentral, form data is saved to your online FormsCentral account. If you have Acrobat, you can export form data as described  here: Adobe Acrobat X Pro * Manage form data files
    Best,
    Sara

  • Converting a date time to a date only

    Post Author: Dockman
    CA Forum: Formula
    I am working on a report that has a running total field.  The running total field keeps a running total and resets every time that a date changes.  the problem is that my dates include times, therefore the running total resets on every line.  How can I convert my date (in date time format) to be only a date so that it does not reset on every line?
    Obviously, I am not a programmer so I apologize if this is a stupid question.

    Post Author: yangster
    CA Forum: Formula
    if you are doing it inside crystal you can use the date functiondate({your.datetimefield})if you are doing it at the db level in a command this will vary depending on your db

Maybe you are looking for

  • How do I change the size of the address bar in Safari in Yosemite?

    I'm hating all this blank space.  Plus, I work with many open windows and am constantly copying and pasting links into the address bar in Safari, so it works better for me to have a longer address bar.  I've already poked around in Preferences and th

  • Formatting HD/restore factory settings?

    I have an Imac G3 500mhz, currently running panther. I have lost my panther disks, however i have tiger disks. I want to either use the tiger disks to erase the HD and/or load tiger, or erase everything accet panther from the HD. However the imac doe

  • Problems using a static class extending JSPDynPage

    When I use the pdk with netweaver for creating a new portal object and I want to create a new PortalComponent (JSPDynpage) the pdk generates me the next code: public class TestJspDynPage extends PageProcessorComponent {   public DynPage getPage(){   

  • 10.0.32.18 installation in XP

    I am trying ( in vain ) to get this version of Flask Player working. The download looks to work ok using Abobe Download Manager which says it is 100% installed and the "Close Download Manager" button appears BUT when I get the page http://get.adobe.c

  • PDF or higher res photos

    Any suggestions would be helpful. Basically I would like to be able to use my ipod touch to read 9 point type on pdf or tiff documents while off line. Right now the type is blurry in the photo application and PDF's can't be saved for offline viewing.