Field with time in minutes and seconds

Dear community,
first of all, I am using Apex 3.1 on Oracle 10g, if this is necessary to know (yes I know, an old version, but given by the company I'm working for). After I've developed a few applications in Apex, thank to the forum and all the answers inside, I came to a problem that I could not solve:
I want to have a normal text field, where the user can enter a duration of an event (e.g. "3:45" or "2:30"). That duration will allways be in the format "MM:SS". No hours, no milliseconds... But how can I save the given values in the database, so in which format? A varchar would be a possibility, but I want to build a report later on, where there is a sum of the times. And how to get a sum of varchar?! But how to make it clear to Apex and Oracle DB that the users gives in a time and not a varchar? The only thing oracle offers is a date field, but I want to save a time and not a date!
Does anybody has a clue for me, cause it seems to me, that possibly I just don't know what I'm searching for, cause people must have had this problem before!?
THanks for your help!
Regards
hoge

But how to make it clear to Apex and Oracle DB that the users gives in a time and not a varchar? The only thing oracle offers is a date field, but I want to save a time and not a date!All APEX items are character strings, so implicit or explicit conversion is required when the values are stored in database columns. For the recommended <tt>INTERVAL DAY TO SECOND</tt> columns, use <tt>TO_DSINTERVAL</tt> to perform the conversion.
Use <tt>EXTRACT</tt> to get the minute and second values from the <tt>INTERVAL</tt> going in the other direction.
but I want to build a report later on, where there is a sum of the times.A user-defined aggregate function can be created to sum <tt>INTERVAL DAY TO SECOND</tt> values: here's an example.
APEX's lack of built-in support for summaries on <tt>INTERVAL</tt> types can be worked round by including the sum in the report query using a </tt>UNION</tt>:
SQL&gt; with test_data as (
  2      select
  3                rownum n
  4              , numtodsinterval(ceil(dbms_random.value(0, 3600)), 'SECOND') t
  5      from
  6                dual
  7      connect
  8                by rownum &lt;= 10)
  9  select
10            n
11          , t
12          ,    to_char(extract(minute from t))
13            || ':'
14            || to_char(extract(second from t), 'fm00') t1
15  from
16            test_data
17  union all
18  select
19            null
20          , sum_dsinterval(t)
21          ,    to_char(extract(hour from sum_dsinterval(t)))
22            || ':'
23            || to_char(extract(minute from sum_dsinterval(t)), 'fm00')
24            || ':'
25            || to_char(extract(second from sum_dsinterval(t)), 'fm00')
26  from
27            test_data
28  order by
29            1 nulls last
30  /
         N T                              T1
         1 +000000000 00:04:46.000000000  4:46
         2 +000000000 00:07:05.000000000  7:05
         3 +000000000 00:31:11.000000000  31:11
         4 +000000000 00:53:16.000000000  53:16
         5 +000000000 00:19:02.000000000  19:02
         6 +000000000 00:57:12.000000000  57:12
         7 +000000000 00:43:29.000000000  43:29
         8 +000000000 00:03:11.000000000  3:11
         9 +000000000 00:16:40.000000000  16:40
        10 +000000000 00:20:49.000000000  20:49
           +000000000 04:16:41.000000000  4:16:41A custom named column (row) report template with conditional templates can be used to layout and format such a report so that the summary row(s) are properly handled.

Similar Messages

  • Shift time by minutes and seconds

    please allow shift time by minutes and seconds, not only by whole hours. It
    is needed for synchronizing more than 1 camera after the shot was made.

    Man that is just soooooo non-untuitive and not at all documented. It really should be made more clear both in the documentation and the interface. I wasted a ton of time because I would have *never* guessed (actually I half did, but I said, "naw" to myself).
    Also, it's not actually quite correct because as far as I can tell when it claim to be making "timezone" adjustments, it's actually making time adjustments (no "zone" info it touched). Cameras like the Nikon D80 actually support timezone information (as does the XMP format used) separate from the time stored. As far as I can tell from looking at the XMP files, it always sets the timezone as the curious GMT minus 4 (Atlantic Time???).
    What it really ought to do is normalize the timezone to a single user chosen zone, or allow you to actually change the timezone and have the time adjusted accordingly (and not have it subject to current timezone like it is).
    Anyway, from what I've read, the whole time thing is just messed in Lightroom. Still, had I gone with my guess, I would have saved a bunch of time figuring out "exiftool"...
    Now I know at least. Thanks.

  • Execution time in minutes and seconds

    In the UUT Report, the Execution Time displays in seconds.  How can I get that to display in minutes and seconds.

    I'm just now getting to this, and I've decided to address this in the reportgen_html.seq.  In the step labelled "Add Execution Time", the expression reads,
    Locals.Header += "<TR><TD NOWRAP='NOWRAP'><B><LI>" + ResStr("MODEL", "RPT_HEADER_EXEC_TIME") + "</B><TD><B>" + (PropertyExists("Parameters.MainSequenceResults.TS.TotalTime") ? Str(Parameters.MainSequenceResults.TS.TotalTime, Parameters.ReportOptions.NumericFormat , 1, True) + ResStr("MODEL", "RPT_HEADER_SECONDS") : ResStr("MODEL", "RPT_NOT_APPLICABLE")) + "</B>\n"
    I found the RPT_HEADER_SECONDS constant and changed it to _MINUTES and changed the string.   I divided the Parameters.MainSequenceResults.TS.TotalTime by 60, and this all seems to work.  The only thing that's not working is that I'm updating the Parameters.ReportOptions.NumericFormat, and no matter what I do it keeps showing me 13 decimal points. 
    The Parameters.ReportOptions.NumericFormat is set to  %$.13f  (but I've tried several variations). 
    I just want it to display something like   21.63 minutes.  Also, what is the $ doing in that expression

  • Split times in minutes and seconds

    I keep a training log wherein I track my bicycle split times. I need to make entries such as, for example, 5 minutes, 37 seconds(5:37 or 05:37 like a stopwatch). I can't seem to find the proper format for this. It keeps coming up in an am/pm or other type of format that is not useful.
    This seems like a simple fix, but it is confounding me. Any help would be appreciated.
    Tom

    Hi tommy,
    Try using the Cell Format inspector to set the cell format to:
    Date and time
    None
    14:10
    or to
    Text.
    The first will still record your example entry (5:37) as 'five thirty-seven in the morning of the current date', but will display only the 'time of day' part of this (as 5:37, whether you enter 5:37 or 05:37). The second will record and display only the actual text that you type (5:37 or 05:37, depending on which you enter).
    Regards,
    Barry

  • Write to Measurement File: Time has minutes and seconds. Where are the hours?

    Hi,
    I have dynamic data acquired by Express VI: DAQ Assistant from a CompactDAQ and wired to Express VI: Write to Measurement File. In the resulting text file in the header the Date is recorded correctly in DD/MM/YYYY format. The Time field should be formatted HH:MMS.XXX but all I see is MMS.XXX. Is there a setting I should change to see the hours?
    Regards,
    Andrew.

    Found the answer, sorry. Excel formatting issue. Not LabView after all.
    Please delete this thread.
    Cheers,
    Andrew.

  • Minutes and seconds form field

    I need to format a field in a way that a user will enter 2 numbers separated by a comma (f.e. "20.02"), and the value will be stored as minutes and seconds (MM:SS), then I will need this value to be used in various time calculations.

    I need to format a field in a way that a user will enter 2 numbers separated by a comma (f.e. "20.02"), and the value will be stored as minutes and seconds (MM:SS), then I will need this value to be used in various time calculations.
    Hi les2worry,
    This kind of data I use quite a lot in a couple of run and walking applications. Depending on the wanted accuracy it can be in expressed in minutes, in seconds or in milliseconds. At input users don't need to give any punctuation character, but just the
    digits.
    So with the second-accuracy:
          Input 2002 yields:               20:02
          Input 1232002 yields:   123:20:02, with no 24-hrs barrier.
    For each accuracy I use two functions: Str_to_sec  and  Sec_to_str.
    After input the inputted string is parsed over the hrs/min/sec positions, and eventually converted to seconds (handy for calculations) in the function Str_to_sec,  and with Sec_to_str converted to the wished format, in my case e.g.  20:02. I usually
    store the formatted result, because the display possibility is far more frequently used than the value for calculation. Using Str_to_sec of the formatted value gives the number of seconds.
    Imb.

  • 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

  • GPS coordinates with minutes and seconds always 0

    I noticed the geotagged photos from my Android phone (Samsung Galaxy S3 with Android 4.3.1 Jelly Bean) have GPS coordinates always rounded to integers in Aperture. However when viewing the photo coordinates on the phone directly before importing in Aperture, or using a non-Apple tool (such as ExifTool), precise coordinates with minutes and seconds are displayed. After some research, I conclude this is an Apple bug. It affects iPhoto and Preview.app too (probably due to same underlying code reading Exif tags).
    Did you experience the same bug? What phone and firmware were used to take the picture?
    For the technical record, here's the bug (which I've notified to Apple). Internally (in the binary format of Exif tags), coordinates are represented by 3 values for degrees, minutes and seconds. Each of these values is represented by a rational number encoded with 2 integers (numerator and denominator). Most cameras will set an integer in the degrees values, and fractional part in the minutes and/or seconds. This format is properly decoded by Aperture. It is however valid format to set minutes and seconds values to 0, and a non-integer value in degrees, such as 70,764,776 / 10,000,000 = 7.0764776 deg. This format is not correctly parsed by Aperture.

    Yosemite has fixed the issue. Coordinates are now correctly displayed.

  • How can I change the timer in the clock app to minutes and seconds instead of hours and minutes?

    Is it wishful thinking or a false memory? It seems like there used to be a way to change the timer function of the clock from hours and minutes to minutes and seconds. I feel like there's a magic tap or secret swipe that I discovered but have forgotten.  Am I totally delusional?

    We may have to wait for an update.  Aside from changing the country, I'm not sucre this can be done.  There is no Health App in the System preferences and no  way to modify from within the app.  Weird.
    If you go to Language & Region under general settings and choose any other country, you will get Metric.  I have the opposite problem.  I live in a Metric country and want my health app to be in lbs and inches which is what I am used to.

  • Can't calculate time in Appleworks - minutes and seconds

    I can calculate hours and minutes, but not minutes and seconds. I've tried using leading zeros and colons, and leaving them out. The number format is set correctly (13:59:01), but I cannot get a calculation. Very frustrating.
    Have tried all the obvious things I can think of.
    Anyone have an idea?

    Got it. Must use single leading zero, not double. I hate spreadsheets.

  • SharePoint DateTime Control "Hour, Minute, and Second parameters describe an un-representable DateTime"

    I am facing a strange behavior from SharePoint:DateTime control.
    I have a webpart containing couple of fields along with datetime control. If I leave this page inactive for a while and then click submit, an exception is thrown stating that "Hour, Minute, and Second parameters describe an un-representable DateTime". 

    Hi,
    According to your post, my understanding is that you got datetime control error.
    The problem may be lied in the Time component. You can disable the time component and go for a date only rendering of the control by setting
    DateTimeField.DateOnly = true.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/64c05363-fd7e-49bb-8239-c93ec78172b6/datetime-control-using-basefieldcontrol?forum=sharepointgeneralprevious
    what’s  more, you can the ULS log to see the details errors.
    For SharePoint 2013, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How can I make a row of cells containing 3-digit decimals, who's values resulted from calculations within the spreadsheet, appear as durations of minutes and seconds?

    Row 6 in this spreadsheet is the result of Row 2/Row 3 as evidenced by the formula listed while Cell Y6 selected. How can I make the values in this row appear as durations of minutes and seconds rather than 3-digit decimals? For example, rather than appearing as 9.84 I would like the value of Cell Y6 to appear as 9:50 or 9min 50sec. (obviously .84x60seconds 50 seconds). I tried changing the cell formats from "number" to "duration," but no change is made. Using the "duration" format does however work if I am manually entering the decimal value into the cell rather than allowing it to result from another caluclation within the spreadsheet. Is there a solution to this within Numbers '09? You can see why I would want the "pace" displayed in minutes and seconds. Thanks in advance!
    Ryan

    Hi Ryan,
    You wrote:
    "The problem is that my "Distance" is a row of automatically generated values resulting from ((Row1/60)*Row 6). Changing the format of Row 1 to minutes causes row two to be expressed as a duration, which obviously it shouldn't because it is a distance. The spreadsheet has to be designed so that all I have to manually input on each entry are Row 1 Values (Time) and Row 6 Values (Average Pace). The rest of the cells must be automatically poulated as a result of formulas."
    I'm assuming that where you say "Row 1" in this you mean "Row 2", which is labeled "Time" in the example in the OP.
    In the original post, you presented a formula from cell Y6. Replacing the Header labels in that formula's cell reference with the Addresses of the referenced cells, the formula was:
    Y6: =Y2/Y3
    In this post, you are saying that Y6 contains entered data: "...all I have to manually input on each entry are Row 1 Values (Time) and Row 6 Values (Average Pace).
    Which is correct?
    Regards,
    Barry

  • How to conver this System.nanoTime() into Hours,minutes and second

    I am getting my Total time with the help of this function ie System.nanoTime(). But i want to Display in the form of Hours,minutes and second.
    So can any one plz tell me that how i will do this conversion.

    If it's less than 24 hours you can use Calendar. or SimpleDateFormat. Add the epoch time for some convenient midnight to the milliseconds value (divide nanos by 1000000).
    Otherwise it's just successive division and remaindering.
    Probably nanos is higher resolution than you need, milliseconds is easier.

  • How to Convert frames into minutes and seconds

    Hi,
    does anyone know how to convert frames into time (minutes and
    seconds). I need the users to view the swf with current time being
    played and over time. I have 2152 frames in total and I want that
    to be converted to time. Can anyone help me on this. I would really
    appreciate it. It is very urgent!!!!
    Thanks

    Time Indicator,
    > does anyone know how to convert frames into time
    (minutes
    > and seconds).
    That depends entirely on the framerate of the movie. At the
    default
    12fps, 12 frames would be one second; 24 frames would be two.
    At 24fps, 24
    frames would be one second.
    > I need the users to view the swf with current time being
    played
    > and over time. I have 2152 frames in total and I want
    that to be
    > converted to time. Can anyone help me on this. I would
    really
    > appreciate it. It is very urgent!!!!
    Judging by your four exclamation points, I'd say it's
    definitely urgent!
    Well, again, if you're at 12fps, 2152 frames would take 179
    seconds, or 2
    minutes and 59 seconds. I arrived at that number by dividing
    2152 by 12.
    Keep in mind, though, framerate is actually more of a
    guideline than an
    exact figure. Framerate determines the rate at which Flash
    will *try* to
    display content. On an especially slow computer, the Flash
    Player may not
    be able to keep up, and the same number of frames might
    actually take more
    time.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Format cells entry into minutes and seconds

    I would like to set up a column of cells that would automatically convert a numerical value to a time format in minutes and seconds. For example, if the user inputs '30', the cell would display ':30'. If the input is '230', the cell would display as '2:30'. How would I do this?

    pml,
    You may use Custom Format to do this. Set the default Integers placeholder to 2 places and to Hide Separator, then type a Colon, then copy the integers placeholder on the left and paste it on the right.
    Now you have ##:##. As you make entries to cells with that format they will be displayed looking like Time per your requirement. For instance 230 will become 2:30. Bear in mind that these won't actually be Time/Date or even Duration values, they will just look that way.
    Then if you wish to do calculations on those inputs you will need to first convert them to Duration with an expression that turns the input into minutes and seconds.
    Jerry

Maybe you are looking for

  • How to delete a number from imessage

    I have deleted a number from my contacts and its still showing up on my imessage.How can i delete this number?

  • How To Get A Custom WebDAV To Run in Windows Server 2008 R2 with IIS 7.0

    I am trying to create a WebDAV application using the below link as my starting point. http://sourceforge.net/projects/webdav/ I got it working just fine in IIS6 but can't seem to get it to work in IIS7.  Does anybody know if there are any unique conf

  • Xmlns attribute appearing in top level node

    I have an xml message that is parsed and its DOM tree built. Then a portion of the message, identified by an xpath, is extracted which is stored as XMLNode, which is later printed to a stream. Using the latest Oracle XML library ( comes with Oracle 1

  • Clear Settings does not delete .xmp sidecars

    Using latest CR 6.4, Bridge 4.0.4.2 & Ps 12.0.4 Posting here because most knowledgeable folks here rarely if ever seem to visit the Bridge forum anymore. And it does relate to CR settings. In Bridge, if you choose Develop Settings/Clear settings, the

  • Logic Express 9 Uprgrade: MAJOR MISTAKE!

    Hey everyone, I feel really dumb, but I accidentally bought the Logic Express 9 upgrade instead of Logic Express 9. I didn't realize this until I had opened it and tried to register the disc. I do not have and previous version of Logic, all I have is