Showing SUM of minutes as hours & minutes

Hi everyone,
I'm using numbers as a timelog (as I see others doing the same).
I can't, however, find the solution to my problem in the previous post search. I would appreciate any help anyone can offer, so thank you in advance.
I have created a separate spreadsheet in the same document to tally up the total hours for the week. Adding up Monday, Tuesday, Wed, etc. Elaborate example below.
I am pulling in the SUM cell from each sheet/table individually:
Monday - 3h 15m <-- (brought in from Monday sheet, Table 2, Cell D23)
Tuesday - 4h 45m <-- (brought in from Tuesday sheet, Table 2, Cell D23)
and so on...
I would like to SUM the column of these times pulled in from each individual sheet but I keep getting an error when I just use a basic SUM formula.
What formula should be used to sum 7 cells formatted as hours and minutes (1h 15m)?
Thanks in advance!!
Mac
Message was edited by: Macthang

When every cells of column B are formatted as durations, we may get the sum using different schemes :
In B1 and B10, the formula is :
=SUM(B)
In C5, it is :
=SUM(B2:B9)
I just entered your values *_but applied the format duration to cells B1 thru B10_*
Yvan KOENIG (VALLAURIS, France) vendredi 29 octobre 2010 21:08:50

Similar Messages

  • Showing a measure as days/hours/minutes

    Hi gurus, I need you help quickly:)
    I have a report that shows duration of time for certain actions. The only measure in the report is hours (with two decimals). I want the measure to be shown as e.g. 4 days, 4 hours, 30 minutes instead of 100,5 (hours). Is this possible. Sorry if the question is noob

    Thank you very much! Works just as it should!:)
    EDIT: Realized that my measure was MINUTES, not HOURS ...
    But that´s good cause editing the formula provided by Sandeep forced me into really understanding it:)
    If it helps anyone, here´s what you put in the column formula if you want number of MINUTES converted to days, hours, minutes:
    cast(floor(column_name/1440) as char)||'days'||' '||cast(floor(mod(column_name,1440)/60) as char)||'hours'||' '||cast(mod(mod(column_name,1440),60) as char)||'minutes'
    Edited by: SJV4-ever on 2011-mar-16 08:42

  • Date difference in Days,hours minutes and seconds.

    Hi All,
    I have two date Suppose one is getdate() and other one is gatedate() +1 .I have to show the difference, currently I used a datediff in the stored proc which just shows the difference of the days :( but i need to show the difference in days:hours:minutes:seconds if possible.
    its a countdown with the current date. Like the two fields are sale_start_date and sale_end_date. Hope i am clear.
    Please let me know ASAP thanks in advance.Can anyone help me?all help is great help.
    Say the difference of
    12/6/2007 7:00:00 AM, 12/8/2007 8:00:00 AM  as 2 days 1:00:00)
    Thanks
    N

    One of the problems of using DATEDIFF when dealing with either seconds or milliseconds is that this function will result in execution errors if the start and end dates span then entire domain of possible dates.  Below is an alternative that seems to work over the entire date domain.  A couple of things to note:
    1. This select converts the days and seconds of each date into BIGINT datatypes to avoid the overflow error
    2. This select uses a CROSS APPLY operator; in this case I chose CROSS APPLY to suggest the possibility of converting this select into an inline table function.
    I suspect that if you dig around this forum and the net that you will find a better routine, but here is yet another alternative:
    declare @test table
    ( startDate datetime, endDate datetime)
    insert into @test values
    ('6/1/9', getdate()),
    ('6/9/9 15:15', '6/10/9 19:25:27.122'),
    ('6/9/9 15:15', '6/10/9 13:25:27.122'),
    ('6/9/9', '6/10/9 00:00:01'),
    ('1/1/1760', '12/31/2999')
    select
      startDate,
      endDate,
      [Days],
      [Hours],
      [Minutes],
      [Seconds]
    from @test
    cross apply
    ( select
        cast((endSecond - startSecond) / 86400 as integer) as [Days],
        cast(((endSecond - startSecond) % 86400) / 3600 as tinyint) as [Hours],
        cast(((endSecond - startSecond) % 3600) / 60 as tinyint) as [Minutes],
        cast((endSecond - startSecond) % 60 as tinyint) as [Seconds]
      from
      ( select
          86400 * cast(convert(integer, convert(binary(4),
                        left(convert(binary(8), startDate),4))) as bigint)
            + cast(convert(integer, convert(binary(4),
                right(convert(binary(8), startDate),4)))/300 as bigint)
          as startSecond,
          86400 * cast(convert(integer, convert(binary(4),
                        left(convert(binary(8), endDate),4))) as bigint)
            + cast(convert(integer, convert(binary(4),
                right(convert(binary(8), endDate),4)))/300 as bigint)
          as endSecond
      ) q
    ) p
    /* -------- Sample Output: --------
    startDate               endDate                 Days        Hours Minutes Seconds
    2009-06-01 00:00:00.000 2009-06-22 08:28:36.670 21          8     28      36
    2009-06-09 15:15:00.000 2009-06-10 19:25:27.123 1           4     10      27
    2009-06-09 15:15:00.000 2009-06-10 13:25:27.123 0           22    10      27
    2009-06-09 00:00:00.000 2009-06-10 00:00:01.000 1           0     0       1
    1760-01-01 00:00:00.000 2999-12-31 00:00:00.000 452900      0     0       0
    (5 row(s) affected)
     EDIT:
    I based the routine more-or-less on Thilla's reply.
    Kent Waldrop

  • I am looking for a timer that shows elapsed time since a particular date and time.  Showing days, hours, minutes etc.

    I would like to download an application for my desktop and maybe even my iphone that will tell me how many days, hours, minutes, etc have elapsed since a particular date.
    For example, my brother just had a baby and I want to put that date and time into the app and then determine how long it has been since that date and time.
    Hopefully this makes sense, because I have not been able to locate anything.
    Thanks in advance,

    This is fantastic.  Thank you.
    Is there any way to have something like this displayed on my desktop showing the time as it ticks away?

  • Latest itunes shows silly days approximation instead of days, hours, minutes, seconds, how do i change back?

    itune 11.0.0.163 shows silly date approximation on bottom bar rather than days, hours, minutes, seconds as before. How do I change this?

    Apple buried the transfer purchases option, but it's still there. To transfer purchases from your iOS device in iTunes:
    Select the device toward the top-middle of iTunes (underneath the status area/progress bar/Apple logo).
    Go to the File menu.
    Select Devices
    Click on Transfer Purchases from [DeviceName]...

  • Transform a cell with avalue of mintues to another cell to show hours:minutes

    I would like to use be able to fill out one cell in plain mintues(for example 75 min) which I want to be shown in another cell as hours:minutes( 1hrs:15min).

    HI Micke,
    What you use in column D depends on what you actually want or need the result to be—a duration value, including units (h and m), a number representing the number of hours and fraction of hour with the unit label in the next column, or a text value showing the number of hours and the number of 'extra; minutes including unit labels.
    The value in column B is a number, which, according to your original question, you want to display in column D as a duration in hours and minutes.
    The English language function to do that is DURATION. Here's the syntax for regions where the decimal separator is a period.
    DURATION(weeks, days, hours, minutes, seconds, milliseconds)
    In my localization, the formula in D would be =DURATION(,,,B)
    In your localization DURATION would be replaced by the Swedish name for this function, and the three commas would be replaced by semi colons:
    =FUNCTIONNAME(;;;B)
    Format the cell in column D as DURATION with hours and minutes as the units to include in the display.
    Although that will convert the number in B to a duration in D, the labels "Min" and "Hrs" in the cells to the right of theseclls in the image of your table implies that what should be in both of these cells should be a number value representing the number of minutes (B) and the number of hours, including (decimal) fractional hours (D) with the unit shown by the label in the adjacent column.
    =B/60
    Formatted to show two places after the dcimal will show the number representing hours and hundredths of hours equivalent to the number of minutes shown in column B.
    If you are using this value in further calculations, this may be the best type of value to place in this cell.
    If the cell is for display only, you can build a text string displaying the number of hours and minutes (with whatever labels you wish to put in for Hrs and Min using QUOTIENT and MOD
    =QUOTIENT(B,60)&" Hrs "&MOD(B,60)&" Min"
    This is a text value, and can't be used in further calculations. (but the calculations could probably be revised to use the value in B.
    Regards,
    Barry

  • Minutes and hours query problem

    I've got the following query in my app:
    SELECT NAME,
    SUM(HOURS)+SUM(MINUTES/60)-SUBSTR(TO_CHAR((SUM(MINUTES/60)),'9999D00'),6,3) AS"HOURS",
    MOD(SUM(MINUTES),60) AS"MINUTES",
    SUM(OVERTIME_HOURS)+SUM((OVERTIME_MINUTES/60))-SUBSTR(TO_CHAR(SUM((OVERTIME_MINUTES/60)),'9999D00'),6,3) AS"OT HOURS",
    MOD(SUM(OVERTIME_MINUTES),60) AS"OT MINUTES",
    SUM (STAT) AS "STAT",
    SUM(HOURS + (MINUTES/60) + (OVERTIME_HOURS*1.5) + ((OVERTIME_MINUTES/60)*1.5) + STAT)-SUBSTR(TO_CHAR(SUM((MINUTES/60)+((OVERTIME_MINUTES/60)*1.5)),'9999D00'),6,3) AS "TOTAL HOURS",
    MOD(SUM(MINUTES+(OVERTIME_MINUTES*1.5)),60) AS"TOTAL MINUTES"
    FROM KTT_INFORMATION
    WHERE DAY BETWEEN (:P15_FROM_DATE) AND (:P15_TO_DATE)
    GROUP BY NAME
    I want the hours and minutes to display as hours in one column and the remaining minutes in the next column. The minutes are only 15,30 or 45 in the table. For some reason one of the hours columns is giving an output with a decimal. Where the output should be 191 hours and 45 minutes I'm getting 191.5 hours and 15 minutes.
    Any ideas?

    create or replace function get_time(p_time number)
    return varchar2
    is
    v_time varchar2(20);
    begin
    v_time:=to_char(trunc(mod(p_time,3600)/60), 'FM00') || ':' || to_char(mod(p_time,60), 'FM00');
    return (v_time);
    exception
    when others then
    return null;
    end get_time;
    show errors;
    i created a function which converts given minutes into hrs and min.
    then i created a tem table and trying to insert hrs into one column and min into anothere column.
    CREATE TABLE TEMP
    TIME NUMBER(3) NOT NULL,
    HRS NUMBER(3) NOT NULL,
    MIN NUMBER(3) NOT NULL
    insert into temp values (150,substr(get_time(150),1,2) ,substr(get_time(150),4,5))
    hope this may be helpful to you.
    sudhir.

  • Displaying the hour, minute, seconds.....

    Hi fellow experts!
    Once again I call upon you for help. I'm strugglng with the formatting of dates...specifically the hour, minute, seconds between two dates.
    Sample data:
    create table test (script_name varchar2(50),run_start date,run_end date, job_id number, parent_job_id number);
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMPORTMTM','09-FEB-10','09-FEB-10','2409671','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('INT_EOD_VALUATIONS','09-FEB-10','09-FEB-10','2409673','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('ACC_EOD_FXACCOUNTING','09-FEB-10','09-FEB-10','2409677','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('GLO_EOD_FXUPDATE ','09-FEB-10','09-FEB-10','2409679','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('MX_PREACCOUNTING_BACKUP_RP','09-FEB-10','09-FEB-10','2409683','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('DM_PREACCOUNTING_BACKUP_RP','09-FEB-10','09-FEB-10','2409684','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMP_FIXING','09-FEB-10','09-FEB-10','2409688','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('GLO_EOD_FIXINGIRD','09-FEB-10','09-FEB-10','2409690','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('WAIT_5_MINS','09-FEB-10','09-FEB-10','2409692','2409645');
    The output of the time should look like the results from the query below:
    select floor((run_end-run_start)*24) as Hrs ,floor(((run_end-run_start)*1440 - floor((run_end-run_start)*24)*60)) as Mins,
    ceil(((run_end-run_start)*86400 - floor((run_end-run_start)*1440)*60)) as Secs
    from (
    select to_date('10-oct-2003 15:02:23','DD-Mon-YYYY HH24:Mi:SS') as run_start,
    to_date('10-oct-2003 16:20:20','DD-Mon-YYYY HH24:Mi:SS') as run_end
    from dual);
    i.e
    H M S
    1 17 57
    My current sql is:
    select script_name,
    run_start,
    run_end,
    floor((run_end-run_start)*24) as Hrs ,floor(((run_end-run_start)*1440 - floor((run_end-run_start)*24)*60)) as Mins,
    ceil(((run_end-run_start)*86400 - floor((run_end-run_start)*1440)*60)) as Secs
    from (
    select lpad(' ',5*level,' ')||name script_name
    ,to_date(run_start,'dd-mon-yyyy hh24:mi:ss') run_start, to_date(run_end,'dd-mon-yyyy hh24:mi:ss') run_end,
    sys_connect_by_path(to_date(run_start,'dd-mon-yyyy hh24:mi:ss'),'/') root_start
    from jcs_jobs
    connect by prior job_id = parent_job_id
    start with PARENT_JOB_ID IS NULL and job_id = 2409645
    I need a slight tweak somewhere, but can't quite get there!
    Oracle version is 9i
    Many thanks for your help in advance.
    Dev

    Hi,
    Devski Peters wrote:
    ......sorry, I didn't make myself clear.....Sorry, this message made things even less clear.
    Like Bhushan, I don't see any relationship between the data you posted:
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMPORTMTM','09-feb-2010 20:00:02','09-feb-2010 20:00:44','2409671','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('INT_EOD_VALUATIONS','09-feb-2010 20:00:44','09-feb-2010 20:01:03','2409673','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('ACC_EOD_FXACCOUNTING','09-feb-2010 20:01:05','09-feb-2010 20:01:24','2409677','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('GLO_EOD_FXUPDATE ','09-feb-2010 20:01:24','09-feb-2010 20:01:43','2409679','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('MX_PREACCOUNTING_BACKUP_RP','09-feb-2010 20:01:45','09-feb-2010 20:01:49','2409683','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('DM_PREACCOUNTING_BACKUP_RP','09-feb-2010 20:01:45','09-feb-2010 20:01:49','2409684','2409645');
    insert into test (script_name,run_start,run_end,job_id,parent_job_id) values ('IMP_FIXING','09-feb-2010 20:01:51','09-feb-2010 20:02:15','2409688','2409645');and the results you want:
    NORMAL_DAY     09-feb-2010 18:05:00     10-feb-2010 04:22:45     20'681'879.88
    Step 1 of NORMAL_DAY     09-feb-2010 18:05:00     09-feb-2010 18:05:24     575.88
    Step 2 of NORMAL_DAY     09-feb-2010 18:05:24     09-feb-2010 18:05:46     527.88
    EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:24     09-feb-2010 18:05:46     527.88
    Step 1 of EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:24     09-feb-2010 18:05:30     143.88
    FX_FTPS_GET_EOD     09-feb-2010 18:05:26     09-feb-2010 18:05:30     95.88
    Step 2 of EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:30     09-feb-2010 18:05:45     359.88
    FXSPOTS     09-feb-2010 18:05:31     09-feb-2010 18:05:45     335.88
    Step 3 of EOD_FX_RATE_UPLOAD     09-feb-2010 18:05:45     09-feb-2010 18:05:46     23.88
    SEND_MAIL_FXSPOTS     09-feb-2010 18:05:45     09-feb-2010 18:05:46     23.88
    Step 3 of NORMAL_DAY     09-feb-2010 18:05:46     09-feb-2010 18:06:10     1'535.88
    CALENDAR_UPLOAD     09-feb-2010 18:05:47     09-feb-2010 18:06:10     1'511.88
    Step 1 of CALENDAR_UPLOAD     09-feb-2010 18:05:47     09-feb-2010 18:05:53     143.88
    CALENDAR     09-feb-2010 18:05:47     09-feb-2010 18:05:53     143.88
    Step 2 of CALENDAR_UPLOAD     09-feb-2010 18:05:53     09-feb-2010 18:06:00     1'127.88
    MDS_STOP     09-feb-2010 18:05:53     09-feb-2010 18:06:00     1'127.88
    Step 3 of CALENDAR_UPLOAD     09-feb-2010 18:06:00     09-feb-2010 18:06:03     71.88
    MDS_HOLIDAY     09-feb-2010 18:06:00     09-feb-2010 18:06:03     71.88
    Step 4 of CALENDAR_UPLOAD     09-feb-2010 18:06:03     09-feb-2010 18:06:10     167.88Do you really want that data to produce that output?
    If the results are not from that data, then post a consistent set of data and results.
    When you have poted some sample data and the results you want from that data , explain how you get those results. Pick a couple of rows of output, and explain how you got every column in the results from the data. Be specific.
    The table has a 'pig ear' relationship......so job_id can have the same parent_job_id.....What is a "pig ear" relationship? (I like the name.)
    >
    The connect by allows me display the results with indentation, so the results will look like:The results look completely unformatted on my browser.
    When you post any formatted text on this site, type these 6 characters:
    (small letters only, inside curly brackets) before and after each formatted section.
    So for example,the first line shows a time of 20'681'879.88, which works out to 10:18 hours approx. Explain the relationship between 20'681'879.88 and "10:18 hours". (Do you mean 10 hours plus 18 minutes?)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Conversion of minutes into hours obiee 10g

    hello,
    i have a requirement saying that we need to convert the minutes to hours later aggregate the hour values.
    i.e.,i have the outage_time=130 mins.If i try to convert the 130 mins to hrs it will be 2.16 hrs but i am expecting 2.10 hrs.And later need to aggregate(SUM) the hrs values like 2.34,2.45....=4.79 but my expectation is 5.19 hrs.
    Is this requirement is possible?if yes,can anyone please help me out.
    thanks,
    prasanna

    It is not straight way to get this and you need to compromise at aggregation
    for 130 minutes to get 2.10
    use
    130/60==>2
    MOD(130, 60)==>10
    combine them to get 2.10 in string format.
    >aggregate(SUM) the hrs values like 2.34,2.45..
    Since BI is not sure about your calculation in the form of hours you need to go by mintues and then use above steps to convert in hours
    I'm sure this helps you, mark as correct else let me know your comments
    ~ http://cool-bi.com

  • I have a late 2012 iMac running osx 10.8.5.  I keep losing access to my internal hard drive.  I can reboot and regain access and it will last for a few minutes or hours.  Disk utility does not seems to help.

    I have a late 2012 iMac with an I5 precessor running OSX 10.8.5 and a 1tb internal hard drive.  I keep losing access to the internal hard drive/startup disk.
    I can reboot and everything operates as normal for a few minutes or hours but then I lose all access again to anything on the hard drive.  The computer is still up and running but no files can be accessed and certain websites cannot be acessed even though internet access appears to be normal.  Disk utility can only find permission errors related to iTunes which can be repaired only to come back at the next scan (I would not think permission errors would have anything to do with the hard drive crashing).  It does not seem to matter what program I am using at the time access is lost and it can lose access sometimes right after reboot when no program is running.

    You will need to boot into the Recovery Volume (command - R on a restart or hold down the option/alt key during restart and select it) to run Disk Utility/Disk Repair.

  • So after updating my ipod touch 3rd gen to 4.3.1 i noticed a lag everytime i turn it back on. it stays on the lock screen for minutes sometimes hours. the screen is usually unresponsive the only things usually changing are the time and battery percentage.

    so aafter upsating my touch to 4.3.1 i have noticed everytime i restart the ipod there is a huge lag at the lock screen. the screen only updates itself every three to five minutes only updating the time and battery status. i cannot do anything, usually it will stay like this for minutes sometimes hours. i have tried restoring it and thought updating will fix the problem but it hasn't yet. i currently have ios 4.3.3. recently i had a friend look into the ipod and he told me on a folder called damaged files he found this, 37c3ad com.apple.autowake.plist. how can i fix this?

    Try a manual install following directions in link below.
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD  120G Vertex 3 SSD Boot HD  

  • How to get the number of minutes or hours from date arithmetic ?

    Thanks in advance,
    I have two date fields that I would like to derive the number of minutes or hours via the following:
    select start_date - end_date from dual;
    How do I get HH:MM results ? Thanks

    If greater than 24 hours you'll need to calculate the hours and minutes as numbers individually. (You can then display them in whatever format you choose)
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select to_date('6-10-2008 08:00','DD-MM-YYYY HH24:MI') as from_dt, to_date('7-10-2008 12:30','DD-MM-YYYY HH24:MI') as to_dt from dual)
      2  --
      3  select from_dt, to_dt, to_dt-from_dt
      4        ,to_char(trunc(sysdate)+(to_dt-from_dt),'HH24:MI') as hrs_mins
      5        ,trunc((to_dt-from_dt)*24) as hrs
      6        ,trunc((((to_dt-from_dt)*24)-trunc((to_dt-from_dt)*24))*60) as mins
      7* from t
    SQL> /
    FROM_DT           TO_DT             TO_DT-FROM_DT HRS_M        HRS       MINS
    06-OCT-2008 08:00 07-OCT-2008 12:30        1.1875 04:30         28         30
    SQL>

  • How do I log the time in hours, minutes and seconds to a table

    Hi
    I'm a relatively new user of Labview. I am currently writing a program that logs the temperature of an oven and the current time to a table and graph. I am using a GPIB card to communicate with the oven. I have used the Get Date/Time string to get the time and the Decimal String to Number to convert the time to a number which I have then put into an array which goes to a table and graph. My problem at the moment is that the time is being logged in hours only. I need to log the time in hours, minutes and seconds. Can you tell me how I can do this?

    Hi,
    I can see the setup now. The decimal string to number will only ever give the hours, since the ':' character is not part of a number, so won't translate. Use the code I attached previously to get the time as a timestamp, and then go from there.
    I've made some modifications, although you'll need to alter the file save to take into account the double precision number
    for the timestamp is now 3E+9 (since it's seconds since 1904!!), but since you're writing to a comma separated values (or tab deliminated) style file, this shouldn't be a problem. You could always do a textual save from the table instead.
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer
    Attachments:
    temp time program.vi ‏98 KB

  • Adding day/hour/minute/second to a date value

    How does one add a day/hour/minute/second to a date value?

    SQL> select to_char(sysdate, 'DD/MM/YYYY HH24:MI:SS') to_day,
      2         to_char(sysdate+1, 'DD/MM/YYYY HH24:MI:SS') add_day,
      3         to_char(sysdate + 1/24, 'DD/MM/YYYY HH24:MI:SS') add_hour,
      4         to_char(sysdate + 1/(24*60), 'DD/MM/YYYY HH24:MI:SS') add_minute,
      5         to_char(sysdate + 1/(24*60*60), 'DD/MM/YYYY HH24:MI:SS') add_second
      6  from dual
      7  /
    TO_DAY              ADD_DAY             ADD_HOUR            ADD_MINUTE          ADD_SECOND
    10/10/2006 11:54:23 11/10/2006 11:54:23 10/10/2006 12:54:23 10/10/2006 11:55:23 10/10/2006 11:54:24
    SQL>Cheers
    Sarma.

  • Write elapsed time to a spreadsheet in hours:minutes:seconds format

    Hi everyone,
    I've been trying to write an elapsed time to a spreadsheet file in an hours:minutes:seconds format, but the time is displayed in a floating point value of seconds..
    how can I write to a spreadsheet in an hours:minutes:seconds format.
    Thank you,
    James-

    I often use a subVI that converts Seconds to Hours, Minutes and Seconds. Use the Quotient and Remainder function to divide your elapsed time by 3600, 60 and 1. You can then convert those values to a modified string and use the Write to Spreadsheet File.
    As Dennis said, newer versions of LabVIEW's Write to Spreadsheet File.VI can handle arrays of Double, Integer or String automatically, and in older versions, the Write to Spreadsheet File.VI can be modified and copied to handle strings.
    Hope this helps.
    (Written in 8.5)
    Message Edited by LabViewGuruWannabe on 01-18-2008 09:28 PM
    Attachments:
    TimeToSpreadsheet.vi ‏26 KB
    SecondstoHMS.png ‏32 KB

Maybe you are looking for