Formatting time

Can someone tell me how to make a field with a formula in it the return of the calculation in the time format (hh: mm)? For example, you have two fields; Zone 1, in which you enter data, and zone 2 which gets the data from zone 1 and it changes time format. You put the value of 0.75 in zone 1 and zone 2 is supposed to change at 01:15 (1 hour, 15 minutes).

I tried to do 2 field a time field, but I can't make it work. I also tried to use the timefmt function, but either I don't know how to use it properly (more likely), or it is not what I want it to do.

I would be grateful of any entry.

Hello

If your input field is DecimalField1, you can try this FormCalc in the case of calculation of a field (a little one around all way):

var nHour = Floor (DecimalField1)
var = nMinutes (DecimalField1 - nHour) * 60
Location var = Round (nMinutes)

If (DecimalField1 is null or DecimalField1 == 0) then
$ = null
on the other
$ = Concat (nHour, ': ', location)
endif

I'm going to bed now...

Have a good weekend!

N.

Tags: Adobe LiveCycle

Similar Questions

  • get the value of the sysdate in 24-hour format time

    Hi all

    How can I get sysdate in 24-hour format time value (the result should be the only number, not the varchar value)?

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    "CORE 11.2.0.1.0 Production."

    AMT for Linux: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    Select to_number (to_char (sysdate, 'HH24')) of double;

  • GetDate / date string format time

    Hi all

    I needed some help understand why I can't use %p for A.m. and p.M on my screen of outut. When I run the application, I get time but not indicates am/pm.

    I have attached the image and the VI.

    The 12-hour clock used %I for the time being.

    The correct format string is % I: % h: %p %S

  • Change the system in 24-hour format time

    I can't change the icon of the system clock in the lower right from desktop to a time format 24 hours a day. I changed it on the tab of the region and when I check to see if it is still changed, it is changed in the pop-up window, but it does not change on the system icon in the lower right of the desktop. Is this a bug or I do something wrong?

    Original title: system clock

    You want to change it on the Formats tab instead (not the tab of the region).  Here is the option you should see:

    Make sure that you adjust the short time a:

  • Is there a function to format time without being a real time?

    What I mean is I want display the elapsed time (which can reach more than 24 hours in some cases) and to express it in the format hh: mm. I created a function that does this, but I a little trouble with the minutes since I decided to take the amount (which is total in minutes) and divided by 60 to get the number of hours. Of course, it will be a modulo the number in most cases but that number is a fraction rather than a value - time. Maybe I am just asleep since I work a lot recently, but I just turn around with that idea and I can't imagine I'm the only one who have this need in the world, so I guess that there is a function somewhere!

    I know it's possible to do it in JavaScript, but I would prefer in ColdFusion to be used from the side server.

    I thank the suspicion!

    As my need was a factor of 15 minutes (15, 30, 45, 60), I decided to simplify my function at this level and now it works. See code for more on this topic as it can be to someone else.

  • formatting time to a value greater than 23:59

    Hi all
    I have the following problem:
    in my database I'm ranger schedules of the buses in time stamp formats. If we assume, journey begins to a stop from the station at 23:59 and ends the next day at 00 h 10, this value has the day successive.
    So far so good.
    Now I want to export this table in a specific format, where only the hours, the minutes and the seconds are relevant. Is it now a way to tell oracle to store this value instead of 00:10 24:10?

    Thanks a lot for your help

    Markus

    Published by: markusin on November 26, 2009 05:23

    markusin wrote:
    Thanks a lot for your answer. the only problem always arises when the trip ends at 01:00 or later, it would not be replaced. But, I can solve this problem by myself now.

    No problem:

    select  to_char(start_dt,'dd-mm-yyyy hh24:mi') start_dt,
            to_char(end_dt,'dd-mm-yyyy hh24:mi') end_dt,
            to_char(start_dt,'hh24:mi') start_hhmi,
            case
              when trunc(end_dt) > trunc(start_dt) then to_char(24 + to_char(end_dt,'hh24'),'FM00') || to_char(end_dt,':mi')
              else to_char(end_dt,'hh24:mi')
            end end_hhmi
      from (
            select trunc(sysdate) - 1/24/60 start_dt,trunc(sysdate) + 70/24/60 end_dt from dual union all
            select trunc(sysdate) + 1/24/60  start_dt,trunc(sysdate) + 10/24/60 end_dt from dual
           )
    /
    
    START_DT         END_DT               START_HHMI END_HHMI
    ---------------- -------------------- ---------- ----------
    25-11-2009 23:59 26-11-2009 01:10     23:59      25:10
    26-11-2009 00:01 26-11-2009 00:10     00:01      00:10
    
    SQL> 
    

    SY.

  • Date format time: PL/SQL

    create or replace

    TEST procedure as

    -remove all instances of more 30 days

    number of l_days: = 7;

    date of l_cur_datetime;

    Start

    run immediately "alter session set current_schema = dev_soainfra';"

    l_cur_datetime: = sysdate - l_days;

    How then can I convert the format YYYY-MM-DD hh: mm: l_cur_datetime

    Hello

    TO_CHAR (l_cur_datetime, 'YYYY-MM-DD hh24:mi:ss') - 24 hour format

    TO_CHAR (l_cur_datetime,'YYYY-MM-DD hh AM: mi: ss')

    What do you mean by MM:MM:MM

  • Box of custom need to add text - format ' / time "after a series of numbers.

    Simple question that I don't know how to do. I need a particular text box to display "/ hour" or "per hour" after I typed an hourly rate (for example 25,50).

    Is it possible to do?

    For example, typing "25,50" would produce "$ 25.50 / hour.

    In second thought it is not that complicated... This code should do the trick:

    if (event.value && !isNaN(Number(event.value))) event.value = "$" + util.printf("%.02f", Number(event.value)) + " per hour";
    
  • Old Time Machine back up is not recognized as such on my newly formatted mac

    Hello I have a mac pro 2009 edition, running on OS Yosemite

    I had an external HD to format Time Machine (TM), where I saved all my mac on. However I had to change my mac HD because it crashed and I installed a new SDS. I didn't recover all of my data on the new SSD, but I want to be able to access time machine to restore the items selected as iPhoto and iTunes. But when I plug my external, the computer reads as a regular external and I can't access it through TM and TM TM wonder to redefine a new external for backup of the TM.

    If I select my old external as the new external TM will erase all old backup?

    Is it possible that TM recognizes older externally as Time Machine back up? or is that, with each new HD, TM is new?

    Thank you

    If you now select this drive for Mac with the new HD files o the drive will be not changed/deleted.

    When you reinstall OSX and then try to use a TM backup you must first select this drive. What happens when you select this drive in the configuration of the TM and then try to restore the files through TM interface.

    See also:

    http://pondini.org/TM/FAQ.html

    Time Machine - Frequently asked Questions

  • Date time format BlackBerry java application

    Hi all

    I'll have a Date format time as ' 2013-10 - 09T 12: 45:00 + 05:30 '. How can I convert in ' hh: mm a "or" hh: mm a "in my Blackberry Java Application.

    Thank you and best regards.

    I will not be able to solve this problem using techniques integrated... In any case I analyzed it manually...

    Thankng you all for you answer!

  • How to get the drop-down menus to insert the time in format 24 hours a day instead of 12-hour format?

    Need help with form that inserts a time defined by the user in a new record using the drop-down list three menus, php 5.3 and mysql on OS X system.


    I have a problem of formatting the values inserted in 12-hour am/pm time format in mysql time 24 hours format. I don't know how or where to do the necessary changes. I use a Web script that works as required, with the exception of conversion on the issue of the time.


    I tried to format time in mysql using DATE_FORMAT and TIME_FORMAT, change formatting using php, using another function to add 12 hours, using advice from various forum posts, using a hidden field and reorganize the content of the page, but I am unfortunately too inexperienced and awkward in the areas involved to shoot successfully it all together; Instead, I just managed to confuse me and make hash of the encoding.


    The code on the page works (inserts in the mysql database) but not inserts do not pm time. The mysql field is a basic time with a default value of 00:00:00. I have need the date as the time lists are especially necessary for planning purposes unrelated to any specific date.


    I would appreciate help, ideas, pointers or ideas is at work. It is a new area for me. Thank you.

    Parts of code:

    $hours = ' < select name = "time" > "'. ' \n';"

    $minutes = ' < select name = "min" > "'. ' \n';"

    function check ($num)

    {

    If ($num < 10 & & strlen ($num) < 2)

    {

    $num = '0'. $num;

    }

    return $num;

    }

    for ($i = 0; $i < 13; $i ++)

    {

    $hours. = ' < option value = "' check ($i)." » » >'. $i. "< / option >". » \n » ;

    }

    $hours. = "< / Select >.

    for ($i = 0; $i < 60; $i += 5)

    {

    $minutes. = ' < option value = "' check ($i)." "" ">"check ($i). "< / option > '. » \n » ;

    }

    $minutes. = "< / Select >.

    If (isset($_POST['submit']) & & $_POST ['submit'] == 'Submit')

    {

    echo ' the time that you entered is: ';

    $hour = $_POST ['hour'];

    $min = $_POST ['min'];

    $ampm = $_POST ["ampm"];

    echo date (' h: i a ", strtotime ($heure.': '.)") $ min. ' '. $ampm));

    echo "< hr > ';

    }

    ? >

    Insert and query the Recordset:

    $insertSQL = sprintf ("INSERT INTO endtimelist (EndTime) VALUES (%s)", GetSQLValueString ($_POST ['time']. ':'.) ") $_POST ['min']. 00', 'date'));

    $query_rsEndTimeList = "SELECT EndTimeListID, EndTime, TIME_FORMAT (endtimelist.» End time, "(% h: %i %p ') AS EndingTime FROM endtimelist ORDER BY EndTime ASC"; "

    Form:

    < form action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "endtime" id = "endtime" >

    Time: <? PHP echo $hours;? >: <? PHP echo $minutes;? >

    < select name = "ampm" > < option value = "am" selected = "selected" > AM < / option > < option value = "pm" > AM < / option > < / select > < br >

    < input type = "submit" name = "submit" value = "Submit" >

    < input type = "hidden" name = "MM_insert" value = "endtime" / >

    < / make >

    There is nothing wrong with your brain. You did it very well. Is to forget the details such as 12 noon and midnight, causing stupid errors of logic in the code.

    The book, I plan to write will be about Dreamweaver and PHP, covering many aspects not addressed is not my course books. I expect to publish by May next year, but there have been unforeseen delays, it is not likely to be interrupted until June or July. Writing a book is a tedious exercise.

  • record channel times of order data NI_DataType

    I'm trying to replicate some features of selection of the control Data Logging property in the VeriStand workspace in a Labview application (I wish I could get just the VI for control of the workspace).  In the control of the registration of the properties-> channel category data the time channel can be selected.  When I select absolute time he records the system path = 'targets, controller, channels, Absolute System Time. "  But I have one property TDMS NI_DataType = 68.  If I manually select the channel (add channels) we obtain a = 10 NI_DataType.  The difference seems to be that the NI_DataType = 68 has the well formatted time (m/d/Y/min) while the NI_DataType = 10 at a time in a large number that represents the number of seconds.  The NI_DataType is read-only.  How can I get the formatting nice NI_DataType = 68 to be registered like that?  This post is treated?  If so how to do that?

    Thank you!

    I have found that the Group of channels TDMS (NI_VS Data logging API.lvlib) type def that gets wired for the new Data Logging Specification.vi has a def of time type of the channels Options which allow channels different time to be configured and named.

  • Help with the calculations of time

    I tried several searches but can't seem to find what I need to do. I need to read a file with two columns, the first column is the time of an event. Then I need to calculate the time between each event (row). I know I have to use a loop to read the file but I cannot find any information on what the best way to calculate the time between each event so that I can get statistics such as average time per cycle, time since the last cycle, etc.. The only way that I can think is to read the file as a string and then parse time, but that doesn't seem like an effective way of doing things.

    example: data.csv

    08:00 10

    08:12 8

    10:00 2

    11:12 3

    Use '% <%H:%M> t' as format string instead. Capital T formats time as an absolute time, which according to your format is not what you are working with. The tiny t he reformatted as a relative timestamp and you should be able to calculate your time between events of.

    Hope this helps,

    Rob

  • 16 or 32 bit C 'time' runtime library output differs

    Hello developers,
     
    I have a legacy 16-bit application written in C that displays the time system in UTC format (time Unix).
     
    Here is the code snippet:

    time_t  t ;
    printf("%ld\n", time(&t)) ;
    

    There is a difference between the time displayed in seconds on 16-bit and 32-bit application created with 16-bit and 32-bit Microsoft CL compiler for the above code.
     
    Can someone explain why the difference occurs?
     
    For example, here is the example is run at the same time,
    32 bit: 1404391074
    16 bit: 1404436063
     
    Thank you
    Vishnu

    Hello

    Transfer your question to the MSDN Forum

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Get a time indicator Relative to display ZERO

    Greetings,

    I'm having a hard time finding solid answers on indicators how digital with a relative time display mode work.  I was looking for help online, I searched the forums and I googled like crazy.  No simple answer to what seems not like a simple problem.

    I have a digital indicator of DBL an hour Relative value of display mode. If I put zero value on my pattern, I find myself with 19:00 on my front.  If the indicator is time RELATIVE, a value of ZERO seconds shouldn't be at 00:00:00?  If I set the value on the front panel to zero, then create a constant, it indicates that the value is-68400.  What is the problem?

    Thanks in advance!

    TST wrote:
    Are you sure you are using a legitimate version? There was a bug in one of the recent versions beta (he could have 8.5 or 8.5.1) where absolute time and relative time in this dialog box values were reversed, but I don't think it should be in one of the published versions. Try selecting the absolute time instead and see if you get the relative time.

    It is a fully legitimate version, activated and registered.  This was installed through the 8.5 DVD that we got with our Developer Suite subscription.

    But I think you might be onto something here.  I've linked the constants on my diagram of blocks, is gone to the display Format, time chosen "Relative" and got what looked like a COMPLETE TIMESTAMP with AM/PM and a year.  I went to 'Absolute time' and I arrived at 00:00.

    I have attached a small 'table', I did various settings.  If it's a bug, it certainly seems like he does in a release build.

Maybe you are looking for

  • FaceTime/iMessage, do not connect

    any time I try to connect with my apple ID just little loading symbol continue to go and he never charges / open face time - the same as with iMessage? any advice-simple instructions if possible

  • Where can I find a list of codes "Wake right?

    I found several "Wake reason" codes in my syslog using $(syslog | grep ' >: Wake raison»).  In all of my different systems they are: GIGE, PCI, PXS1, PWRB, RTC, USB2, XHC1.  Are there more codes, and what do mean?  Y at - it a full list somewhere?

  • Compaq CQ58: Nothing works

    Hi guys I have a laptop Compaq CQ58 and I tried all the links but nothing works. -no Ethernet controllerNo network controllerNo pci devicesno controller communication simple pciNo sm bus controller Please help its urgent PCI\VEN_8086 & DEV_1E3A & SUB

  • That means the silent dispatcher?

    silent Dispatcher - what is - this mean

  • Clicks of the mouse is not always effective

    Today, whenever I enter a mouse click, there seems to be about 1 to 3 chances that it comes into force.  Sometimes it works the first time (as expected), others that it takes about 5 goes, it seems to have an impact on all the programs that I use IE,