SUBTRACT TIME TO DATE & TIME

Hi.
I need SUBTRACT TIME TO DATE & Time.
Example:
Date = 08.05.2007
Time = 01:00:00
Time_subtract = 2:00:00
Return of FM:
Date = 07.05.2007
Time = 23:00:00
Do you know any FM?
Thanks!

Since the max time difference can be 24 hrs you can reduce that much amount of time from the initial date and then add the difference from the initial date.
Example : if time difference is to be calculated is 05:00:00 , since this is less than 24 , just add 24 -5 hrs = 19 hrs to the date ( subtract 1 from initial date ) using CONV_UTIL_ADD_DATE_AND_TIME.
If time to be added is greater than 24 hrs then subtract ( TIME/24 ) from original date and add the difference to date.
Example : 
Date = 08.05.2007
Time = 01:00:00
Time_subtract = 52:00:00
Subtract figure = 52/24 = 3 , 52 - 48 = 4.
Return of FM:
New date :
Date = 05.05.2007
Time = 01:00:00
Now add 4 to above date using FM to get result.

Similar Messages

  • SUBTRACT TIME FROM DATE & TIME

    Hi.
    I need FM which will SUBTRACT TIME from DATE & TIME.
    Example:
    Date = 05.05.2007
    Time = 05:00:00
    Time_subtract = 48:00:00
    Return of FM:
    Date = 03.05.2007
    Time = 05:00:00
    Do you know any FM?
    Thanks!

    Hi, Check these function mod's
    SD_DATETIME_DIFFERENCE
    HRCM_TIME_PERIOD_CALCULATE
    HR_ECM_GET_PERIOD_BETW_DATES
    After you execute them in SE37 give the required input and you will get a correct output.
    <b>REWARD IF USEFUL</b>
    thanks n regards
    Dinesh

  • Login Date/time & Logout Date/time of User in apex

    Hi,
    Is there any apex internal table/view where I can get the Login Date/time & Logout Date/time per user ?
    Regards,
    Benz

    Benz wrote:
    Is there any apex internal table/view where I can get the Login Date/time & Logout Date/time per user ?No APEX version = no definitive answer...
    APEX 4.1 offers:
    <li><tt>APEX_WORKSPACE_ACTIVITY_LOG</tt>
    <li><tt>APEX_WORKSPACE_ACCESS_LOG</tt>
    Access these through Home > Application Builder > Application > Utilities > Application Express Views
    See: Creating Custom Activity Reports Using APEX_ACTIVITY_LOG
    Note that the underlying logs are purged on a regular basis, so for the long term you need to copy the data to your own tables.
    Home > Administration > Monitor Activity provides reports based on this data.
    APEX 3.0 has Home> Application Builder > Application > Application Reports > Activity > Page Views by Session which is probably closest to what you're looking for. Can't find this so far in APEX 4.x: presumably superseded by the Home > Administration > Monitor Activity > Page Views > By Interactive Report option?
    Note however that the concensus among the wise is that accurate "logout" statistics with APEX (or any browser-based system) is impossible. How many users actually logout using using a method that triggers a capturable event at the actual time they stop using the system? How many are going to close the current browser tab? Or the entire browser window? Or press Cmd-Q? Or click a bookmark for a different location? Or type "p0rn" into the Search box? Or switch to another window and spend the rest of the morning reading Twitter? Or shutdown the machine? Or run out of battery power? Or lose their wifi connection? Or get timed-out during the fire drill? Or go home for the night after locking their PC with everything still running? Or...

  • When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds.

    When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds. From decimals of inputline. If i disconnect the input to the subVI "Get Date/Time string vi" it will work propperly, it also doses if I reconnect it. I use LabViev 7.0.
    So the problem i solved, but i dosent understund why it works in this way. Does it indicate other problems which will make my researchprogram unrelaible ?
    Attachments:
    Waveform_Time_to_Date_Time_String.vi ‏18 KB

    Hello.
    I checked your vi and it fails as you state.
    It runs fine if: 1 Convert number to timestamp OR
    2 Wire a constant to want seconds?
    In labview 7.1, no problems.
    I think is a job for NI engeniers.
    Hope it helps
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • Date Time Original & Date Time Digitized bug

    I have noticed that in Lightroom (1.1 or 1.2, doesn't matter) my photographs display WRONG Date Time Original & Date Time Digitized in the Metadata section. Both are exactly 30 minutes behind the actual time the photos were shot - eg., if I have shot a photo at 7:00pm, it will be shown as though it was shot at 6:30pm. Bridge correctly displays both this info. Any suggestions on how to rectify this info in Lightroom? Thanks,

    If you are shooting RAW, take care with "Edit capture time". There is
    evidence that it causes a rewrite of the RAW file by LR. This
    kind of a rewrite is dangerous, sometimes causing corruption. See
    this thread for a discussion:
    http://www.adobeforums.com/webx/.3c0331a6
    --Milt--

  • Convert Epoch Date Time to Date Time format

    I am trying to convert Epoch Date time in GMT to Human Readable Date time format in UTC. I used the one below but it returns just the date in GMT but how can get datetime in UTC ?
    select To_Char( To_Date( '01.01.1970 06:00:00','DD.MM.YYYY HH24:Mi:Ss') + STARTIME / 86400,'DD.MM.YYYY HH24:Mi:ss') FROM HQ_AVAIL_DATA_RLE;
    I refered a couple of forums and applied everything, but still I wouldn't get the timestamp.
    Please note that i'm looking for datetime stamp, not just the date.
    Thanks in advance!
    Edited by: 830754 on Jan 27, 2011 11:18 AM
    Edited by: 830754 on Jan 27, 2011 11:19 AM

    Works for me. I see date and time (submitted 1000 for STARTTIME):
    select To_Char( To_Date( '01.01.1970 06:00:00','DD.MM.YYYY HH24:Mi:Ss') + 1000 / 86400,'DD.MM.YYYY HH24:Mi:ss')
    from dual
    TO_CHAR(TO_DATE('01
    01.01.1970 06:16:40Or do you mean something else?

  • Default time in Date time field

    Hi,
    I have a date-time field. I want to default the time when a user selects the date.
    Currently when a user selects the date its takes the current system time. i would like it to take the time as 11:00.
    Can you please help me on this.
    Regards,
    Boris

    Hi,
    Check below links:
    Time picker along with Date picker
    Time as User input
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                   

  • Calculate actual time (Out Date Time - In Date Time)

    Hi All
    I am using Oracle 9i
    I have a two column table
    having date and time value in on of the column
    data is look like this
    Name Performed_Time
    IN 30-MAR-2008 09:15
    OUT 30-MAR-2008 11:30
    IN 30-MAR-2008 12:00
    OUT 30-MAR-2008 14:45
    IN 30-MAR-2008 16:00
    OUT 30-MAR-2008 18:21
    No the problem is that
    I need to calculate the actual time between every OUT and IN e.g OUT - IN (Out Time minus In Time)
    wud anybody plz help me regarding this?
    Thanks
    Hassan

    Nice one, but seems to be expensive.
    SQL> set autotrace on
    SQL> Select (dt_out - dt_in) * 24*60
      2        from (select flag, dt dt_in, lead(dt) over (order by dt) dt_out
      3                from t)
      4      where flag = 'IN';
    (DT_OUT-DT_IN)*24*60
                     135
                     165
                     141
    Execution Plan
    Plan hash value: 3295878825
    | Id  | Operation           | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT    |      |     6 |   126 |     4  (25)| 00:00:01 |
    |*  1 |  VIEW               |      |     6 |   126 |     4  (25)| 00:00:01 |
    |   2 |   WINDOW SORT       |      |     6 |    72 |     4  (25)| 00:00:01 |
    |   3 |    TABLE ACCESS FULL| T    |     6 |    72 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter("FLAG"='IN')
    Note
       - dynamic sampling used for this statement
    Statistics
              4  recursive calls
              0  db block gets
             15  consistent gets
              0  physical reads
              0  redo size
            473  bytes sent via SQL*Net to client
            395  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
              3  rows processed
    SQL>
    SQL>
    SQL>   Select ins.dt as in_time, outs.dt as out_time, (outs.dt - ins.dt)*24 as time_in
      2      from (
      3           select flag, dt, row_number() over (order by dt) as rn
      4           from t
      5           where flag = 'IN'
      6          ) ins
      7          LEFT OUTER JOIN
      8          (select flag, dt, row_number() over (order by dt) as rn
      9           from t
    10           where flag = 'OUT'
    11          ) outs
    12          ON (ins.rn = outs.rn);
    IN_TIME           OUT_TIME             TIME_IN
    30-MAR-2008 09:15 30-MAR-2008 11:30       2.25
    30-MAR-2008 12:00 30-MAR-2008 14:45       2.75
    30-MAR-2008 16:00 30-MAR-2008 18:21       2.35
    Execution Plan
    Plan hash value: 3072654067
    | Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |      |     3 |   138 |     9  (34)| 00:00:01 |
    |*  1 |  HASH JOIN OUTER     |      |     3 |   138 |     9  (34)| 00:00:01 |
    |   2 |   VIEW               |      |     3 |    72 |     4  (25)| 00:00:01 |
    |   3 |    WINDOW SORT       |      |     3 |    45 |     4  (25)| 00:00:01 |
    |*  4 |     TABLE ACCESS FULL| T    |     3 |    45 |     3   (0)| 00:00:01 |
    |   5 |   VIEW               |      |     3 |    66 |     4  (25)| 00:00:01 |
    |   6 |    WINDOW SORT       |      |     3 |    36 |     4  (25)| 00:00:01 |
    |*  7 |     TABLE ACCESS FULL| T    |     3 |    36 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access("INS"."RN"="OUTS"."RN"(+))
       4 - filter("FLAG"='IN')
       7 - filter("FLAG"='OUT')
    Note
       - dynamic sampling used for this statement
    Statistics
              7  recursive calls
              0  db block gets
             30  consistent gets
              0  physical reads
              0  redo size
            623  bytes sent via SQL*Net to client
            395  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
              3  rows processed
    SQL>

  • Time Machine - Date & Time format problem

    I'm sorry if this has been mentioned elsewhere, but I was unable to find it. Following a change I made to the Date & Time prefs in order for the complete date to show in the menu bar I am now unable to determine the time a backup was made or anything else for that matter.
    I made the modification via the International Preferences - Formats pane, but this did not display as I wanted and I have since gone back to how it was originally or so I thought! Now all the time stamps are showing as a five or six digit number. Does anyone know have to change this back!
    thanks
    littlebad

    littlebad wrote:
    I'm sorry if this has been mentioned elsewhere, but I was unable to find it. Following a change I made to the Date & Time prefs in order for the complete date to show in the menu bar I am now unable to determine the time a backup was made or anything else for that matter.
    I made the modification via the International Preferences - Formats pane, but this did not display as I wanted and I have since gone back to how it was originally or so I thought! Now all the time stamps are showing as a five or six digit number. Does anyone know have to change this back!
    Hi, and welcome to the forums.
    Do you mean in the TM Interface +(Enter Time Machine)?+
    If so, try turning TM off, selecting the "none" drive, quitting System Preferences, then going back and re-selecting the drive.
    If that doesn't work, try a "full reset:"
    Turn TM Off, de-select the drive, note any exclusions in Options, quit System Preferences.
    Delete the file /Library/Preferences/com.apple.TimeMachine.plist (in your top-level Library folder, not your home folder).
    Re-select your drive (and re-enter any exclusions).
    Do a +Back Up Now+ or wait for the next scheduled backup.

  • Time and date + time zone

    Hi. For any reason, despite Manual says, in Time & Date I will find an option to enable / disable "Daylight Saving Time", it simply doesn't exist in my iPod options.
    Second issue is, when I connect my iPod at iTunes, the setted Time Zone in iPod (marked as Sao Paulo - Brazil) change automatically to Anchorage (???). why this?
    not good, is apple forcing me to throw away my iPod and buy a new one?
    MODEL MB261LL
    VERSION 1.1.3PC

    Try Calgary.
    Stedman

  • RE: Time and Date Changed by itself

    The date and time will change to the wrong one automatically especially after the batt died. This repeated itself regardless on how many times i readjust the time and date to the right one. Someone please help me.

    I had the same problem today. I also have the iPod 4g, no problems up until today. First make sure you calender is set to "Gregorian, you can do this by going to Settings --> General --> International, and you will see the calender options, mark Gregorian. Still didn't work? Try this: I experimented a little, and what i did was: First, I went to Settings --> General --> Date and Time --> Set Date & Time (before doing this make sure you're in the correct time zone) and here you can change the time and date. But, if it changes automatically, go to the date, and you may have the same problem here, but here's what i did. I couldn't change the month, or day, but i could change the year. Change the year to 2011, and then all the other options should come up. Hope this helped!

  • How do I update Date Time Digitized to match an updated Capture Time for a DNG file?

    I am updating capture time based on GPS Time (a bit OCD, I know) but when I change Capture Time the Date Time Digitized value does not change. This in in LR 4.3 and is not affected by whether on not the Catalog is set to 'Write date or time changes into proprietary raw files'. Maybe this is a problem for DNG files only.

    GreSep wrote: I saw another LR discussion that said that with LR 4.3 updating Capture Time would also update Date Time Digitized but it does not do so for me on my DNGs (and as of last month ALL my images were converted to DNGs).
    One or two intermediate versions of LR 3 (perhaps Lr 3.6) set DateTimeDigitized when you gave the Metadata > Edit Capture Time command. But for people managing scans in which the capture time of the original image was different than the scan time, this behavior overwrote their scan times, so Adobe backed out of that change.  Before and since those versions, the Metadata > Edit Capture Time command just changes the EXIF:DateTimeOriginal and related fields in XMP and IPTC.

  • How do I preserve date/time when converting to DNG?

    When I convert a file to DNG format in Lightroom, it changes the capture time in the metadata to the current date and time, rather than copying the source data.  Is there a way in which I can tell it to leave my dates alone?

    You wrote: “I noticed my mistake. It seems that what the conversion process was changing was the ‘Metadata Date’ and ‘Date Time’ fields, but ‘Date Time ‘" and ‘Date Time Digitized’ were remaining the proper, original date. The cause of my confusion was that my Metadata panel view was hiding all but the ‘Date Time’ field, so it appeared as though it had overwritten my prior date information.”
    Date/times in photo metadata can be very confusing.  There are all these fields with confusing names imposed by legacy industry standards -- I challenge anyone except a metadata nerd like me to remember the meanings and differences of Date/Time, Date/Time Original, Date/Time Digitized, Capture Time, Metadata Date, Modify Date, ....  The worst are the two XMP fields Date Created and Create Date, which have two very different meanings!  And every app and operating system makes a half-hearted attempt to "simplify" it for the user by choosing different names.   
    LR makes no serious attempt to make this easy for the user, and over the first several versions, it's handling of date/times was pretty sloppy. (It still has outstanding bugs that don't crop up that often in practice.)  You would think that at least LR would provide roll-over tool tips on the field names in the Metadata panel explaining each field.

  • Date & Time incorrect

    When my Mac has been in sleep mode or shut down, the clock freezes. When logged in the clock runs but on the incorrect time. Date & Time is set to update automatically will only correct when the Date & Time folder is opened from System Preferences. Any ideas how to fix please?

    Does anyone know why my mac time always goes backwards by 1-6 hours. I will reset the time and next time I look or turn on the computer it is an incorrect time again.
    Any help?

  • How ti save date/time info into .lvm

    Hi,
    i need to save date/time info (Date:Time) into one .lvm together with my other signals (dynamic data). any suggestions?
    it should look like this for example
    results.lvm:
    date/time signal 1 signal 2 signal 3
    01.01.2005/12:00 2.2 3.3 4.4
    01.01.2005/12:02 2.4 3.4 4.5
    01.01.2005/12:04............
    and so on for every loop.
    thanx in advance
    vedran divkovic

    The LVM Express VI was designed to be easy to used. To facilitate this, data formats are fixed and cannot be set by the user in the Express VI. You have several options to get the format you want.
    If you don't need all the header information in the LVM file, roll your own code. If you are only saving one line of code at a time, this is particularly easy. You will also need to write your own read code, assuming you are not just using Excel or something similar.
    Use the formatting capabilities of your analysis program to create the date code. Excel, for example, is perfectly happy to generate a time/date string based on a simple number. You may have to convert from LabVIEW absolute time to Excel absolute time, but that is fairly trivial. You can make a macro to do this.
    If you need the LVM header info, write the file using no data to get the header, then fill in your data with your own formatting. Read-back will be harder, since you will need to write that yourself. However, you can probably get most of the info from the LVM file read (maybe with an error), then read your own formatted data from the end of the file.
    WARNING: this one dives into vi.lib code. While you cannot change the formatting in the top level of an LVM file, the subroutines do take formats on a per-column basis. So, you can modify the original code to do what you want. Open the front panel, then search for ex_SignalsToSprdsheetStr.vi. Give it the format string you want and you are off. Note that this format will be in place everywhere you use the LVM code unless you save the entire hierarchy to a different location (using Save With Options->Development Distribution, include vi.lib files). Be very careful with this. You can easily get into cross-linking problems (linking VIs from the wrong location).
    One final comment. You can find the specification for the LVM file format in Specification for the LabVIEW Measurement File (.lvm), Version 1.0. It includes everything you didn't want to know about the LVM file format.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

Maybe you are looking for

  • Have a logo stay on each page after presentation

    hi any help is greatly appreciated, i have this presentation, with slides and movies and i want to be able to have the logo come on after each slide or film has finished,so as i talk the logo will be on rather than a black screen. does anyone know ho

  • How to track usage in tempDB

    Hello Forum, We have a busy system, and the developers have fallen in love with temporary tables. Too much love.... I can get a snapshot of tables in tempDB, but I would like to track which procs are causing the load in the tempDB. I think I can samp

  • Value formatting on chart axis in WAD

    Hi experts, In WAD charts, I use an ordinary line chart. Is there a way to format the value on the axis so that it becomes thousand separated? I.e. Instead of a value on the axis of 80000000, we would prefer to have 80 000 000. BR, Niclas

  • How to keep Anchor links for all small piece of Images in a BIG Image?

    Hey, I have a Bigger Image, in which I have some number of Images (created it through Fireworks).. Now I need a links to all those piece images For more info: pls check my actual thread here: http://forums.adobe.com/message/4695100#4695100 Hoping for

  • How to group root subfolders among partitions?

    After a cup of coffe, planning a new system, I've came to conclusion that it'd be logical to split the filesystem hierarchy into 3 partitions (to reserve free space for groups of them rather than for each one): 1. bin, sbin, lib, etc, root. 2. usr, o