Convert minutes to Hours and Minutes

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Convert minutes to Hours and Minutes

    Hi There

    It's getting late and my brain is feeling like a Larne sausage :-)

    What I want to achieve is to convert a total number of minutes into a more
    readable format of hours:minutes.

    At present I have a variable containing the total number of minutes for a
    group of tasks and I want to display that total as hours and minutes.

    e.g varTotalTime = 184

    I want to dispaly that as Toal Time Taken = 3hrs 4mins

    TIA

    Regards
    Bren


    Bren Guest

  2. Similar Questions and Discussions

    1. Calculate Hours and Minutes
      Yes, DateDiff() in hours shows whole hours only. To get the hours as a decimal, calculate the difference in minutes and divide by 60:...
    2. Time Format in datagrid (Hours, Minutes, Seconds)
      I have a column in my database that stores total seconds. I want to bind this colum to my datagrid. Is there a way to have the time show as hours,...
    3. More than 25 minutes to install CS ?
      Is this normal? Installing the whole CS takes more than 25 minutes I think close to 40 minutes. This was being installed on a PB OSX(10.3.X) and...
    4. Filemaker Pro 6.0 version 1 taking from 45 minutes to 2 hours to launch?
      Folks, I found this information just now while searching the Filemaker knowledge base. I believe this is what is causing my problem with...
    5. convert seconds to minutes & hours
      Erik Waibel wrote: The modulus (%), multiplication (*), and division (/) should be all you need. Just convert everything to seconds, e.g. number...
  3. #2

    Default Re: Convert minutes to Hours and Minutes

    VBScript:

    hours = vartotalTime \ 60
    minutes = vartotalTime Mod 60

    Bren wrote:
    > Hi There
    >
    > It's getting late and my brain is feeling like a Larne sausage :-)
    >
    > What I want to achieve is to convert a total number of minutes into a more
    > readable format of hours:minutes.
    >
    > At present I have a variable containing the total number of minutes for a
    > group of tasks and I want to display that total as hours and minutes.
    >
    > e.g varTotalTime = 184
    >
    > I want to dispaly that as Toal Time Taken = 3hrs 4mins
    >
    > TIA
    >
    > Regards
    > Bren
    >
    >
    Manuel Socarras Guest

  4. #3

    Default Re: Convert minutes to Hours and Minutes

    On Tue, 19 Apr 2005 00:46:43 +0100, Bren <bren@dontbothertoreply.com>
    wrote:
    > Hi There
    >
    > It's getting late and my brain is feeling like a Larne sausage :-)
    >
    > What I want to achieve is to convert a total number of minutes into a
    > more
    > readable format of hours:minutes.
    >
    > At present I have a variable containing the total number of minutes for a
    > group of tasks and I want to display that total as hours and minutes.
    >
    > e.g varTotalTime = 184
    >
    > I want to dispaly that as Toal Time Taken = 3hrs 4mins
    >
    > TIA
    >
    > Regards
    > Bren
    >
    >
    Sorry what server model are you using, tipically you can get this by
    reading the documentation on the date() function. In coldfusion you even
    got the LS (locale set).

    Within dreamweaver you can configure this by doing a recordset and on that
    recordset panel move to the right and clicking on the date field and it
    will display different encoding options, if the field is a date, then it
    will put the different date formats.

    --
    Alexandro Colorado
    ------------------------------
    Support Engineer
    InterAKT Online
    [url]http://www.interaktonline.com[/url]
    Tel: 40(21) 312.5312
    Alexandro Colorado Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139