How to calculate elapsed time(including time and date)?

Hi all,
I want to realize a function that can calculate the elapsed time which include time and date.Below is my thought:get the current time and date and store it to a .txt file then using the latest time and date subtract the time and date stored in the .txt file.how can realize it using the simplest way?I'm using LV7.1.

Hi Idragon,
you can do it like this.
Mike
Attachments:
DateTime.PNG ‏12 KB

Similar Messages

  • HT3819 How can I transfer eveything (including playlists and play counts) to a new computer?

    How can I transfer eveything (including playlists and play counts) to a new computer? Also, I am using PC.

    Type "move itunes library" into the google search bar.

  • How SAP calculate the outstanding PO quantity and amount.

    how SAP calculate the outstanding PO quantity and amount.

    Hi Arun Raj,
    APO does not calculate the open qty.
    Only the open qty of the PO is ciffed to APO from R/3.
    Regards,
    Ashok

  • I had an Ipad 1. I just bought an Ipad3. How do I transfer all my apps and data from my Ipad1 ti Ipad 3?

    I had an Ipad 1. I just bought an Ipad3. How do I transfer all my apps and data from my Ipad1 to Ipad 3?

    See Here  >  http://support.apple.com/kb/HT2109

  • How to calculate the hour difference between two dates?

    hi all,
    how to calculate the hour difference between two dates?
    eg i trying this...
    ((TO_DATE(TO_CHAR(GRNi.reference_date_4,'hh24:mi'),'hh24:mi') -
    TO_DATE(TO_CHAR(NVL(GRNi.reference_date_3,SYSDATE),'hh24:mi'),'hh24:mi'))*24)*60 Act_Hr
    Reg.
    AAK

    Hi
    To break the diff between 2 dates into days, hours, minutes, sec -- you can use the following:
    select to_char( created, 'dd-mon-yyyy hh24:mi:ss' ),
    trunc( sysdate-created ) "Dy",
    trunc( mod( (sysdate-created)*24, 24 ) ) "Hr",
    trunc( mod( (sysdate-created)*24*60, 60 ) ) "Mi",
    trunc( mod( (sysdate-created)*24*60*60, 60 ) ) "Sec",
    to_char( sysdate, 'dd-mon-yyyy hh24:mi:ss' ),
    sysdate-created "Tdy",
    (sysdate-created)*24 "Thr",
    (sysdate-created)*24*60 "Tmi",
    (sysdate-created)*24*60*60 "Tsec"
    from all_users
    where rownum < 50
    HTH
    RangaReddy

  • I lost my Iphone 5 today in Johor Bahru. Not install Find my Phone/Icloud/Offline. How to prevent others access my email and data ? Or how to remote lost mode/locking phone ?

    I lost my Iphone 5 today in Johor Bahru. Not install Find my Phone/Icloud/Offline. How to prevent others access my email and data ? Or how to remote lost mode/locking phone ?

    suyantosdf wrote:
    I lost my Iphone 5 today in Johor Bahru. Not install Find my Phone/Icloud/Offline. How to prevent others access my email and data ? Or how to remote lost mode/locking phone ?
    If you didn't enable find my iphone in icloud settings on your phone, then you can't do a lost mode or lock your phone.
    I would assume you had a passcode on your phone to lock it.  If you didn't then start changing your passwords.
    Report the lost to your phone carrier - local authorities.

  • How to calculate the total running time for process from sysssislog entries

    Hi All,
    I have the below query which gets me the log entries form the logs table when the process started/completed.
    Select row_number() over (order by starttime) row_num,Substring( Substring(message, CharIndex('''',message) +1 ,Len(message)) ,0, CharIndex('''',Substring(message, CharIndex('''',message) +1 ,Len(message)))) as Description,
    starttime,endtime,message
    from dbo.sysssislog
    where (message like 'start%' or message like 'finish%' ) and
    LEFT(Substring( Substring(message, CharIndex('''',message) +1 ,Len(message)) ,0, CharIndex('''',Substring(message, CharIndex('''',message) +1 ,Len(message)))),1) between 'A' and 'Z'
    order by starttime
    However,I have to build a report on the top of it showing how much time that attribute/dimension/heirarchy took to execute(Ex-How much time did YearlyReview dimension take to complete).I dont have much knowledge of T-SQL and unable to figure out how to calculate
    that on SQL or report level.
    Could someone please assist me in getting the exact query for that?
    Thanks a lot.

    I get the below output(sample 20 rows) on executing this query.Also,a start process does not necessarily follow up a finished message for the same dimension as it may have been stopped or it failed.So we need to leave it as NA in case it started but dint
    finish
    Row_Num Description starttime endtime Message
    1 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Super Type' dimension.
    2 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Super Type' dimension.
    3 Team Member Indicator 12/13/12 16:38 12/13/12 16:38 Started processing the 'Team Member Indicator' dimension.
    4 Team Member Indicator 12/13/12 16:38 12/13/12 16:38 Started processing the 'Team Member Indicator' dimension.
    5 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Super Type' attribute.
    6 PAC SC Super Type 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Super Type' attribute.
    7 Specialist Merger Indicator 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Specialist Merger Indicator' attribute.
    8 Specialist Merger Indicator 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Specialist Merger Indicator' attribute.
    9 YearlyReview 12/13/12 16:38 12/13/12 16:38 Started processing the 'YearlyReview' dimension.
    10 YearlyReview 12/13/12 16:38 12/13/12 16:38 Started processing the 'YearlyReview' dimension.
    11 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Repeat Caller' dimension.
    12 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC SC Repeat Caller' dimension.
    13 Year 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Year' attribute.
    14 Year 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'Year' attribute.
    15 Staffing Function 12/13/12 16:38 12/13/12 16:38 Started processing the 'Staffing Function' dimension.
    16 Staffing Function 12/13/12 16:38 12/13/12 16:38 Started processing the 'Staffing Function' dimension.
    17 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Repeat Caller' attribute.
    18 PAC SC Repeat Caller 12/13/12 16:38 12/13/12 16:38 Started reading data for the 'PAC SC Repeat Caller' attribute.
    19 PAC HV Cust 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC HV Cust' dimension.
    20 PAC HV Cust 12/13/12 16:38 12/13/12 16:38 Started processing the 'PAC HV Cust' dimension.

  • How to Calculate Overtime Using Negative Time Management

    Hi Experts,
    We are having PA,OM & PY in our project scope. We have just configured TM uptill workschedule.
    But how to calculate the overtime when we are using negative time management.
    We are having International Payroll Driver.
    Regards,
    Irfan

    Hi,
    Thanks for your prompt response.
    But if the overtime is based on Basic , HRA and other wage components.
    How the configuration of the wage type takes palce.
    Regards,
    Irfan

  • How to get  time of entry and date  fields during creation of excise inv

    Dear all,
    During creation of Excise invoice i am getting only removal time field.
    Please guide how to get the entry time field and date.
    Regards,
    deepti

    Hi
    Deepti
    When you do J1II OR J1IIN u will find the posting date that is nothing but Date which is used when entering the document in Financial Accounting or Controlling. For time system is taking the SAP time to record the doc.
    Thx.

  • Comparing time including AM and PM

    Hi,
    In my project, if a customer calls an agent,his time matches with the server time.If the calling time is between 9.00 AM to 6.00 PM the welcome message will be played.If the calling time is between 6.00 PM to 9.00 Am,the message agents logged off should be played.I tried the following.
    import java.util.*;
    import java.lang.Object;
    import java.text.Collator;
    public class CurrentTime{
      public static void main(String[] args){
        Calendar calendar = new GregorianCalendar();
        String am_pm;
        int hour = calendar.get(Calendar.HOUR);
        int minute = calendar.get(Calendar.MINUTE);
      //  int second = calendar.get(Calendar.SECOND);
        if(calendar.get(Calendar.AM_PM) == 0)
          am_pm = "AM";
        else
          am_pm = "PM";
      String time= "Current Time : " + hour + ":" + minute + " " + am_pm;
        System.out.println(time);
        Collator myCollator = Collator.getInstance();
          if(( myCollator.compare(time, "9.00 AM") > 0 ) && (myCollator.compare(time, "6.00 PM") < 0))
                    System.out.println("welcome");
    }Here i have checked whether my time 11.49 AM > 9.00 AM and 11.49 AM < 6.00 PM.But nothing is displayed.because it is not taking the AM and PM.It is just comparing 11.49 < 6.00.How can i compare the AM and PM?please help me to solve this.
    Thanks

    myCollator.compare(time, "9.00 AM")Doesn't a Collator compare strings? "11.49 AM" < "9.00 AM" because "1" < "9". Calendars implement Comparable so compare them instead. Or use before() and after().
    Edited by: pbrockway2 on Aug 13, 2008 7:31 PM
    Edited by: pbrockway2 on Aug 13, 2008 7:35 PM
    Or get the hour and compare it to 6 or 9.

  • How to calculate the Current APC (Acquisition and Production Cost)

    Hi,
    Please help me how to calculate the Current APC.
    The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
    The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
    The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line “Acquisition Value” and column “Posted values”.
    I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
    Please help me.
    Thanks in advance,
    Satish

    Hi,
    you'll find the logic in fm FI_AA_VALUES_CALCULATE
    A.

  • How to make column that include currency and value

    Hi, all
    In the standerd form,  there is a column that include currency and value.
    For example sales order.
    And it have to column in the DB table.
    Can I make same column to use SDK.
    And how can I make it.
    Best Regards

    Hi,
    I tried this and somewhat achieved this.
    Bind the required col to a UserData Source as text type, and once u enter the cost or the price concatinate the entered price with the selected currency.
    But this col cannot have the same functionality and validations of SAP.
    Award points if helpful.
    Regards,
    Vasu Natari.

  • How to calculate redo rate,transaction rate and Average redo write size

    Can anybody tell me how to get redo rate,transaction rate and Average redo write size other than statspack.

    thanks raghu,
    But can you tell me where it is in OEM. Preferably can you give me SQL queries to get these stuffs.

  • I have just bought a new iphone 4 as an upgrade to my iphone 3GS.  How can I transfer all my apps and data to the new iphone 4 and keep facetime etc on the new iphone 4.  If I do a restore of the iphone 3GS I only get the 3GS apps (i.e. no facetime)

    I have just bought a new iphone 4 as an upgrade to my iphone 3GS.  How can I transfer all my apps including saved levels in games etc. and data and folders to the new iphone 4 and keep facetime etc on the new iphone 4. When I have done this for someone else they got all their data etc but lost the Face Time App and teh iphone 4 looked like the iphone 3 screen.

    There is no FaceTime app for the iphone, FaceTime is built into the iOS. Follow the directions here:
    http://support.apple.com/kb/HT2109

  • How to Calculate the minimum of all the dates in a column

    Hi Reporting gurus,
    I have to reporting requirement where i need to calculate the Actual cycle time.
    This is how it goes.
    The last four column should have
    Actualstartdate(column1)
    Actualfinishdate(column2)
    column3 is the minimum of all the date values in column1(actualstartdate) i.e.,all the dates in column 3 should be same which is the minimum date value of column1.
    column4 is the Actual Cycle time(column2 - column3)
    somebody please throw light on this.
    Thanks in advance,
    Regards
    Sam Mathew

    Sam,
    If the dates are available as key figures, then simply compare.
    (KF1 < KF2) * KF1 + (KF2 <= KF1) * KF2
    This forumla should go in column 3 and then column 4 will be CL4 - CL3.
    This report has to run at the lowest level, i.e. line item or document number. If you want to run it at a higher level, then create these as calculated KF on the cube and divide the result by a count of the lowest level, i.e. document number/line item using exception aggregatoin or a counter key figure. Resulting value will be an average.
    Aneesh

Maybe you are looking for

  • Picture package in ps cs6

    pictue

  • BLOB unicode file name problem

    Hi,        I am trying to upload pdf file into SecureLOB column, I am getting error when I try to upload file name/directory  with unicode char, for other files/directory it works fine. w_src_loc := bfilename('LDIR', in_file_name);   dbms_lob.open(w_

  • Getting the desired condition type

    i have to pick the taxes from me23n--->invoice->taxes  for  PO smartform  based on tax code and the condition record no.s  valid date to  &  valid date from. im using A363 table in which im getting all the condition types for a given material & vendo

  • IOS 4.2 and 3G signal strength

    I have been having a really hard time with my 3G maintaining solid reception at home. Granted, I live in a mountainous area, but it's one of those circumstances where other phones on the same AT&T network are getting much stronger signals and I'm bar

  • Mail, AppStore, Safari all crash after OSX 10.9.4 upgrade

    I recently updated to OSX 10.9.4 and began having problems using native Mail client, AppStore and Safari.  All crash upon trying to open. Crash Dump shows as follows: Process: Mail [650] Path: /Applications/Mail.app/Contents/MacOS/Mail Identifier: