Add 1 minute to TimeFormat

The client adds a time of 5:30 into the database and I want
to output 5:31. How do I add a minute:
I know this isn't correct, but it hopefully gives you little
more of an idea as to what I am trying to do:
#TimeFormat(getAuction.AuctionTime, "hh:mm tt")# +:01
~Thanks in advance~

That did the trick. I had figured out how to do it using the
following:
<cfset
VARIABLES.ActualRegistrationTime=TimeFormat(getAuction.RegistrationTime,
"h:mm tt")+CreateTimeSpan(0,0,1,0)>
But your code is much more efficient. I didn't think to use a
Date add for a Time change. I see it now in my ColdFusion function
reference.
Thanks again!

Similar Messages

  • Add Minutes to a Timestamp column

    Hello there,
    I need to know how to add minutes to a timestamp column in APEX. I was looking for an answer on the internet but the DATEADD function doesn't work in APEX. Any ideas?
    Ruben

    DATEADD is a SQL Server function.
    I think using [interval data types|http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/sql_elements001.htm#i78291] and the NUMTODSINTERVAL function produces the clearest code:
    with ts_example as (
      select ename, cast(hiredate as timestamp) hirets from emp)
    select
              ename
            , hirets
            , hirets + interval '90' minute as intlit
            , hirets + numtodsinterval(90, 'minute') as numtodsint
    from
              ts_example
    ENAME      HIRETS                    INTLIT                    NUMTODSINT               
    SMITH      17-DEC-1980 00.00.00.00   17-DEC-1980 01.30.00.00   17-DEC-1980 01.30.00.00  
    ALLEN      20-FEB-1981 00.00.00.00   20-FEB-1981 01.30.00.00   20-FEB-1981 01.30.00.00  
    WARD       22-FEB-1981 00.00.00.00   22-FEB-1981 01.30.00.00   22-FEB-1981 01.30.00.00  
    JONES      02-APR-1981 00.00.00.00   02-APR-1981 01.30.00.00   02-APR-1981 01.30.00.00  
    MARTIN     28-SEP-1981 00.00.00.00   28-SEP-1981 01.30.00.00   28-SEP-1981 01.30.00.00  
    BLAKE      01-MAY-1981 00.00.00.00   01-MAY-1981 01.30.00.00   01-MAY-1981 01.30.00.00  
    CLARK      09-JUN-1981 00.00.00.00   09-JUN-1981 01.30.00.00   09-JUN-1981 01.30.00.00  
    SCOTT      19-APR-1987 00.00.00.00   19-APR-1987 01.30.00.00   19-APR-1987 01.30.00.00  
    KING       17-NOV-1981 00.00.00.00   17-NOV-1981 01.30.00.00   17-NOV-1981 01.30.00.00  
    TURNER     08-SEP-1981 00.00.00.00   08-SEP-1981 01.30.00.00   08-SEP-1981 01.30.00.00  
    ADAMS      23-MAY-1987 00.00.00.00   23-MAY-1987 01.30.00.00   23-MAY-1987 01.30.00.00  
    JAMES      03-DEC-1981 00.00.00.00   03-DEC-1981 01.30.00.00   03-DEC-1981 01.30.00.00  
    FORD       03-DEC-1981 00.00.00.00   03-DEC-1981 01.30.00.00   03-DEC-1981 01.30.00.00  
    MILLER     23-JAN-1982 00.00.00.00   23-JAN-1982 01.30.00.00   23-JAN-1982 01.30.00.00  
    14 rows selected

  • Add minutes to a day

    Hi,
    I have a requirement to add minutes to a day.
    For e.g the input parameters will be date(10/10/2006) + time(10:22:36) + mins(480) and the output has to be date + time.
    I tried to use the function module "CATT_ADD_TO_TIME"  ...but seems the end time is not calculated correctly.
    Thanks again,
    Rajib

    Hi Rajib Das,
                    Please see the following code
    DATA : MYDT LIKE SY-DATUM.
    CALL FUNCTION 'CATT_ADD_TO_TIME'
      EXPORTING
        idate         =  vbdkl-wadat_ist " 20060731
        itime         =  v_transittime  "     240000 (having 5 spaces before)
        stdaz         =  0
    IMPORTING
       EDATE         = MYDT
    Iam getting error as
    <b>
    The call to the function module "CATT_ADD_TO_TIME" is incorrect:                                                                               
    The function module interface allows you to specify only fields                 
    of a particular type under "ITIME". The field "'24:00:00'" specified here       
    has a different field type.                                                     </b>                                                                               
    Can you please rectify my error
                                                                                    Ranjith

  • How to add minutes to pay as you go phone

    I'm probably missing something really obvious but I just want to add minutes to my phone online and I can't find a link anywhere, every one I click takes me to my account page where there is no option to refill.
    Any help would be great!

    Do you have a password and are you signed up on the prepaid wireless page?? After you put in your cell 10 digit  number you need to put in your password then a page will come up that will give you options on how to refill, either by using a prepaid cell card, or auto pay or buying the prepaid card or credit card.  right frim the web site and putting the number in there.  You said you can get to your account  is there something that says   MyVerison2.0 login?  or veriizonwireless.com/myverizon and enter  your 10 digit cell number and password, if you do not have a password you will have to register and you will be offered different ways to  refill your cell. Hopes this helps.
    Message was edited by: Minniehaha

  • Add Minutes to Date Time Stamp in Select Query

    Hi,
    I have date in one column and Minutes (240,480,.....etc) in another column.
    Below is the date format which i select in select query, now how should i add date column below with Minutes Column.
    to_char(Last_update_date,'DD/MM/YYYY HH:MI:SS AM')
    Thanks
    Pravin

    892547 wrote:
    Hi,
    I have date in one column and Minutes (240,480,.....etc) in another column.
    Below is the date format which i select in select query, now how should i add date column below with Minutes Column.
    to_char(Last_update_date,'DD/MM/YYYY HH:MI:SS AM')
    Thanks
    Pravinyou can NOT add to character datatype.
    what datatype is MINUTES column?

  • How to add minutes to date in java

    I have date in string variable, i have to add/subtract minutes from it, please adivce , how i could do in java 1.5
    sample data
    String olddate = "12/16/2010 4:58:29 PM"
    String minutes1 = "300"
    i would like to get value as below for above data
    String newdate ="12/16/2010 9:58:29 PM"

    Use SimpleDateFormat to convert the date object to string. Once the string object converted to date object use the getTime() method to get the date in milliseconds.
    Now you can easily adds/substract the date object.
    Remember, the resulting long value from getTime() method is in milliseconds, to get the value in minutes you need to multiply it by 1000 and by seconds in a minutes, that is 60.
    When your subtraction/adds done convert it back to date object.
    This is the codes:
    import java.text.SimpleDateFormat;
    import java.text.ParseException;
    import java.util.Date;
    public class DateCalculator {
         public static void main(String[] args) throws ParseException {
              String olddate = "12/16/2010 4:58:29 PM";
              System.out.println("old Date: "+olddate);
              SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm:ss a");
              long oldDateInMillis = formatter.parse(olddate).getTime();
              String minutes1 = "300";
              String newDateAdds = formatter.format(new Date(oldDateInMillis + Long.valueOf(minutes1)*1000*60 ));
              String newDateSubstract = formatter.format(new Date(oldDateInMillis - Long.valueOf(minutes1)*1000*60 ));
              System.out.println("new Date [Additions] : "+newDateAdds);
              System.out.println("new Date [Substraction] : "+newDateSubstract);
    }

  • Add minutes to date

    I have a form in which I have to add the date value to time.
    i.e. I have a variable that stores date in the format 'DD-MON-RRHHMIPM'
    To this value of date, I have to add time which is stored in an other variable in the format 'HH24MI'.
    I can do this using INTERVAL on SQL PLUS, but how can I do it in forms9i?
    p.s. Please save me from fractional calculations, i.e. convert time to fraction of hours.
    Edited by: Sheel on Nov 17, 2008 3:10 AM

    With dates, the unit (1) represents one day. So one hour is 1 /24 and one minute is 1/24/60, and so on.
    If you want to add ten minutes to a date:
    select sysdate, sysdate + (10 * (1/24/60)) from dual;Francois

  • Smartphones Talk Free promo - how to add minutes?

    Hi all -
    I just signed up last month for the Smartphones Talk Free promotion for two new lines (promotional credit of $9.99/mo/line).  At the time, my understanding from the customer service people and the promotional terms was that I could add more anytime minutes at any time - even after the promo period ended.
    Just now, I tried to change my 700 minute Family Share plan to a 1400 minute plan, but there was a disclosure window saying that any changes to my plan would cause me to lose my promotional credits!  Am I stuck with the 700 minute plan in order to keep the promo credits?  Or will upping my minutes still allow me to keep the monthly credits?
    Thanks!

    Anyone else have confirmation?
    While browsing the forum, I came across this thread:  http://community.vzw.com/t5/Upgrade-and-Activation/How-to-best-participate-in-the-Droid-X-BOGO/m-p/34741. 
    In that thread, the Verizon representative says exactly the same thing I heard when I signed up: "Customers may change their anytime minutes anytime after the promotion ends and maintain the $9.99/month credit, as long as they remain on the current $9.99 Nationwide Family SharePlans or Small Business SharePlans." 
    That makes it sound like I CAN change my minutes, but if that's the case, how do I make sure that doing so doesn't count as changing the promo plan?

  • How can I add minutes to my 11yr old nieces phone when she and he phone arent here?

    I have the phone specs though.

        Sounds like a great gift for your niece padresfansd! If this is a prepay line, please contact prepay support directly at 888-294-6804.
    JonathanK_VZW
    VZWSupport
    Follow Us on Twitter@VZWSupport

  • Add or subtract minutes from any time of day

    Hello!
    The problem I'm having is that add or subtract minutes related
    to a time stamp like e.g.
    + (plus)
    17:21 timestamp
    minutes to add +80
    result -> 18:41
    - (minus)
    17:21 timestamp
    minutes to subtract -20
    result -> 17:01
    Is any function module existing for such
    cases. What would you recommend to me to
    solve the problem to get really reliable
    time.
    THX
    ilhan ertas

    Hi Ilhan,
    as long as you don't leave the limits of a day (i.e. time getting below zero or above 24 hours), ABAP time calculations will get correct results. Type t (time) fields in expressions involving numeric data types are internally converted into the amount of seconds.
    So you can  add minutes by multiplying by 60 (second per minute) first.
    In a type T field 17:21 is represented internally as 172100. Add 4800 (80 minutes times 60 seconds) will result (internally) to 17 * 60 * 60 + 21 * 60 + 4800 = 67260. And this will be converted to time format 184100.
    See also this SAP online help:
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb334a358411d1829f0000e829fbfe/content.htm">Date and Time Calculations</a>
    Regards,
    Clemens

  • Is there anyway to add refill card minutes online

    Is there anyway to add refill card minutes online

        jmac40,
    We want you to have easy access to add minutes onto your phone. Great news, you can add minutes online. Visit http://vz.to/1xGkBr0
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • How can I add recording time to a single recording not a series recording?

    If I set-up a series recording it allows me to add minutes to the recording time why can't I add time to a single recording? For example if I want to record a single show tomorrow I find it on the guide and hit record. Now I want to add a few minutes on the end of the show because I know it always runs over it's advertised time why can't I add the time? It doesn't gives to extra options for a single recording. The only time I can add time to a single recording is if the show is currently on then it allows me to add time but, not before the show is on. So what good does that do? Comcast allowed me to set-up extra options to a single recording.

    Actually you can.  It's a bit clumsy but what you have to do is go to the DVR menu, select scheduled reordings, select the recording you want to extend, scroll through the menu and you will find an option to modify the start / end time.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • How do i add time "23:00:00" to a date data type? I have mentioned the code below.

    DECLARE @FIRSTDATE date = '2014-07-06'.
    I need to add time to this without initializing it on the first place. SO basically it should look like  '2014-07-06 23:00:00'. As far as i know it can be done using something like dateadd(). 

    DECLARE @FIRSTDATE date = '2014-07-06'.
    I need to add time to this without initializing it on the first place. SO basically it should look like  '2014-07-06 23:00:00'. As far as i know it can be done using something like dateadd(). 
    Assume you want to add minutes also: concatenate string date & time first, then convert to datetime.
    DECLARE @FIRSTDATE char(10) = '2014-07-06', @FIRSTTIME char(8) = '23:40:20';
    -- Combined date & time
    SELECT [DateTime]=CONVERT(datetime, CONCAT(@FIRSTDATE, SPACE(1), @FIRSTTIME), 120);
    GO
    -- 2014-07-06 23:40:20.000
    Datetime/string conversion:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Adding Minutes

    Hi
    How can i add minutes to a date time stamp objects in desktop intelligence report.Have a solution in universe level
    Select sysdate, sysdate + interval '5' minute from dual;
    but is this possible in report level.
    adds minutes for ex when the number of minutes exceeds 59 it adds 1 hour if the number of hours exceeds 23 it should add a day if the number of days exceeds to 30 or 31 it should add a month .
    I have tried the same using the Substr() function which adds the minutes but when the number of minutes exceeds 59 it adds an hour if the number of hours exceed 23 from there the formula fails.
    Thanks in Advance
    Rohit

    Hi Rohit,
    When working with the hour, minutes, seconds date parts, then I would suggest you try to do this at universe level making use of database functions.
    If you want to handle this at report level, then you need to roll up the time from minutes, hours, days, months, years and this gets quite messy.
    As mentioned, at universe level the soltion is a lot cleaner and re-usable.
    Hope this helps
    Jacques

  • Paying for prepaid minutes.

    Heya,
    I typically love my prepaid phone. Its nice to not be locked into a contract, pay when you want, etc. These past couple of weeks, I've been burning through a lot of minutes talking to my mom (a whole conversation = 15$ and all my minutes gone. You get the picture haha). I went to pay today after another lengthy convo which ate up all my minutes, and I'm told I've exceeded my "monthly payments" and they are "sorry I'm having difficulties"... Then click. So, for once in my life I'm actually seeing a phone company NOT want to rob you of your money!
    I figured I exceeded it for "over the phone minute adding" and came on here to pay. Went to add money, get a response saying they were unable to add minutes, and to contact customer service, which I cannot call because for some reason you get charged to talk to your own phone companys customer service.
    Kinda ticked off about this, because what am I supposed to do, wait a couple weeks until I can pay?
    Anyone have any ideas?

    All you have to do is go into any store supermarket or drug store and buy a prepay verizon card, its the one with the pictures on it. i don't know why customer service didn't explain that. If your mom has a verizon cell you can call each other all you want for 99 cents per day if you have the 99 cent plan.  If you don't have a plan right now than your being charged  25 cents per minute. You should also beable to add minutes online but you would need a credit card for that. Here is the toll free number to call from a landline  1-888-284-6804 also you can have alerts put on the phone to let you know when your balance falls below a certain amount such as $5.00  
    You said customer service said you exceed your monthly mayments. According to the information booklet it says  Minimun payment is $15.00; maximum payment is $250.00. You may replenish up to ten times or $600.00 in a rolling 30 day period.

Maybe you are looking for

  • HR ABAP documentation - Urgent

    Hi Friends, Could any one send me the documentation or link on ABAP HR.Useful docs will be rewarded. Vishnu.

  • ITunes Store Not Recognizing Gift Card Credits

    I recently redeemed a gift card and now $25.00 is showing as available on my iTunes Store page. However, when I attempt to buy any 99-cent song, I get following message: "Your remaining credits are insufficient or inapplicable to this purchase. Your

  • Zip files Exceedingly compressed size message of 30 megabytes are quarantined

    I get this message when I received a zip file over 30 megabytes. FILE QUARANTINED The original contents of this file have been replaced with this message because of its characteristics. File name: '172-16-1-4-04SEP14.ZIP' Malware name: 'Exceedingly c

  • Chart Tool Settings in WAD.

    Hello, Could some body guide me through steps of bringing legend in the chart's displayed in my web report. As of now one chart is displaying legend at right side but none of other are displaying legend so how do i get it. thanks a tone for help.

  • After Effects CS3 Not Starting

    I installed After Effects CS3 on my mac running snow leopard 10.6.4 I also installed the update for After Effects. However it will not run, everything is activated and Adobe says the activation is fine. However the discontinued phone support for CS3.