Professional Web Applications Themes

Convert minutes to Hours and Minutes - Dreamweaver AppDev

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...

  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. #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

  3. #3

    Default Re: Convert minutes to Hours and Minutes

    On Tue, 19 Apr 2005 00:46:43 +0100, Bren <brendontbothertoreply.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 doentation 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

Similar Threads

  1. Calculate Hours and Minutes
    By Allen Browne in forum Microsoft Access
    Replies: 5
    Last Post: June 15th, 06:56 AM
  2. Time Format in datagrid (Hours, Minutes, Seconds)
    By Eric in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: August 12th, 07:30 PM
  3. Replies: 4
    Last Post: September 29th, 04:44 AM
  4. convert seconds to minutes & hours
    By J. Gleixner in forum PERL Miscellaneous
    Replies: 3
    Last Post: August 15th, 06:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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