User Tag List

Results 1 to 7 of 7

Thread: DateTime Difference & Masks

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Brazil - ES
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DateTime Difference & Masks

    I tried to use "Timestamp object" to get the difference between days like 1st January and 1st May, but it returns 0 (1-1) o.O lol... How could I get difference in Days of dates, even with different months/years?

    Another question... How do I apply money/date/custom masks into Text objects? '-'

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: DateTime Difference & Masks

    If you have MMF2 Dev then you can use the Masked Edit object for custom masks like dates and such.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Brazil - ES
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DateTime Difference & Masks

    Hmmm... Thanks, and if I don't have MMF2 Dev? =D

    Any ideas about DateTime thing?

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DateTime Difference & Masks

    What are you actually giving the Timestamp extension to calculate the difference between?

  5. #5
    No Products Registered

    Join Date
    Sep 2006
    Location
    Brazil - ES
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DateTime Difference & Masks

    Sorry about the delay to answer... this:

    TSDayDiff( "TimeStamp object", Time Stamp( "TimeStamp object", 2010, 1, 1, 0, 0, 0), Time Stamp( "TimeStamp object", 2010, 12, 1, 0, 0, 0))

    It's returning 0 and it should return a value greater then 300.

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DateTime Difference & Masks

    From the help file:
    This and the following all return their part of a date difference, so it calculates that 12:01:01 minus 12:00:00 is "1 minute and 1 second", not "1 minute or 61 seconds".
    In other words, it's giving 0 days because the result is "11 months and 0 days".

    I could add a function which will calculate the result you want, or you can subtract the timestamps and divide by (60*60*24).

    EDIT: I think I will add this. It's about time I made the Timestamp object v1.0

  7. #7
    No Products Registered

    Join Date
    Sep 2006
    Location
    Brazil - ES
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DateTime Difference & Masks

    Well if you could, would be awesome! =D
    I don't think will be THAT hard, unless you want to calculate "leap year" stuff... but will help a lot of ppl and turn things even easier =)

Similar Threads

  1. [Beta] DateTime - A flash date/time extension
    By MattEsch in forum Extension Development
    Replies: 15
    Last Post: 29th July 2012, 06:52 PM
  2. Collision Masks for every object?
    By Alves in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 17th January 2010, 10:53 AM
  3. Images And Masks?
    By Atom in forum Hardware Accelerated Runtime
    Replies: 6
    Last Post: 3rd September 2009, 02:06 PM
  4. Collision Masks?
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th June 2009, 04:43 PM
  5. Alpha masks
    By uprize in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th February 2009, 10:36 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
  •