User Tag List

Results 1 to 3 of 3

Thread: How to get maximum number of days of month?

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,764
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)

    Question How to get maximum number of days of month?

    Hi.
    Does anyone knows how to get maximum number of days of month?
    I'm looking on the Calendar object and the Date & Time object. But, they seems not have expressions...

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Unfortunately there's not a direct way,
    but you can apply some conditions to find out

    1) check if the year is leap to determine february length:
    https://en.wikipedia.org/wiki/Leap_year#Algorithm
    (up to 2100 you can safely test for: year mod 4 = 0 >> 29 days, else 28)

    2) each other odd month <=7 has 31 days

    3) months >= 8 have 31 days when even

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,764
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Thank you schrodinger!
    I've calculated the leap year and it worked fine!

Similar Threads

  1. Maximum number of sub-apps
    By Gary_Molton in forum HTML5 Export Module 2.5
    Replies: 0
    Last Post: 11th February 2016, 09:59 PM
  2. Replies: 4
    Last Post: 31st December 2015, 05:21 AM
  3. maximum number of events?
    By Danilo_Dias in forum Fusion 2.5
    Replies: 3
    Last Post: 28th May 2015, 05:55 AM
  4. maximum number of levels??
    By johnnier in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 29th May 2013, 06:03 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
  •