User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: calculate the total hour time from 1440 munutes

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    calculate the total hour time from 1440 munutes

    I must calculate from a number that part from 0 and it reach 1440 es:

    1440 minutes they is equivalent to 24 hour

    75 miutes they is equivalent to 1 hour and 15 minutes

    I wanted to have two counters...
    --one counters what it only count the hours from a number that it reaches 1440

    --the second counter count the minutes, always from the number that it goes from 0 to 1440, and it visualizes these numbers in minutes 0-60

    ex:


    variable A is 190
    variable B (hours) is: 3
    variable C (Minutes) is: 10

    total time is 03:10

    190 minutes is time 03:10

    do you know how I am to calculate this precise time from the total minutes of one day?

    sorry for my english...







  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munutes

    For hours divide the number by 60
    Code:
    ex:    60m/60m=1hr
           120m/60m=2hr
           180m/60m=3hr
                   ...etc

  3. #3
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munute

    ^
    | That way wont give the right result.
    |


    minutes to minutes and hours:

    hours:

    (minutes-(minutes mod 60))/60

    minutes:

    minutes mod 60

  4. #4
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munute

    wat is mod?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munute

    mod is a function in mmf which gives you the remainder of one number divided by the other.

    eg.
    10 mod 2 = 0 (10 / 2 = 5, 0 remainder)
    11 mod 2 = 1 (11 / 2 = 5, 1 remainder)

  6. #6
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munute

    is their a list of all of the expressions explanations somewhere?

  7. #7
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munute

    The MMF help (F1) should have them.

  8. #8
    No Products Registered

    Join Date
    Feb 2009
    Location
    Texas
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munute

    wat catogory would they be under?
    also is there an online version of it?

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munutes

    Quote Originally Posted by DarkeSoft
    For hours divide the number by 60
    Code:
    ex:    60m/60m=1hr
           120m/60m=2hr
           180m/60m=3hr
                   ...etc
    This is an easy solution.
    if I divide a number for example: 190 and divide this number for 60. will appear a decimal number: 190/60= 3.16 hour

    I have to eliminate the decimal number because I need an entire number: 3 hours instead of 3.16

    easy example:
    120 minutes= 2 hour and 0 minutes
    in the "var Hour" add to value "2"
    in the "var minutes" add to value "0"
    hour total 02:00


    hard example:
    950 minutes= 15,83 hour
    in the "var Hour" add to value "15"
    in the "var minutes" add to value "50"

    hour total 15:50




  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: calculate the total hour time from 1440 munutes

    ok, It work, thanks SEELE!

    I have used this solution WITH GLOBAL VALUE, not minutes

    FOR HOURS: (value( "TIMETOTAL" )-(value( "TIMETOTAL" ) mod 60))/60

    FOR MINUTES: value( "TIMETOTAL" ) mod 60

    Regards

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Need a little help with displaying a big total of seconds into a proper time format
    By Shmuper in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th April 2012, 12:05 PM
  2. Correct way to calculate a delta time on MMF?
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 3rd July 2011, 03:28 PM
  3. Date & Time and Calculate Text Rect
    By Fanotherpg in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 15th May 2011, 04:25 PM

Posting Permissions

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