User Tag List

Results 1 to 5 of 5

Thread: getting the number of days in a month - is it possible?

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    493
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    getting the number of days in a month - is it possible?

    I need to figure out a way to count the days between two dates in fusion. Using the "Date & Time" object lets me do that only if the two dates are in the same month. If I however need to calculate the number of days between dates that are on a different month, I can not do that because the "Date and time" object doesnt seem to have the command to return the number of days that are in a specific month.


    Has anyone figured out a different way to do this? I want it to work on native and android

  2. #2
    Clicker Fusion 2.5 (Steam)Android Export Module (Steam)

    Join Date
    Dec 2015
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use the TimeX object, i have never used it but it should do what you want.

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    493
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    unfortunatelly that object is available only for windows games. But thank you for suggesting it

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,461
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Write a small lua or python function and call it.

  5. #5
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    646
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    You could always just define the number of days in each month manually, like setting values or storing them in an array or something. then you'd have a "current month" value and a "target month" value, a "current day" and "target day", then compare the number of days by looping through the months in between and checking some values against each other. I'm not able to make an example but there's some food for thought.

Similar Threads

  1. Replies: 5
    Last Post: 11th October 2014, 03:04 PM
  2. Screens of Galaxia Chronicles coming this month!
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 11th November 2012, 11:31 AM
  3. How many games per month?
    By EdibleWare in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 28th October 2011, 06:06 PM
  4. Time X and the month of Juli/July
    By Kimera in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 14th July 2008, 10:04 AM

Posting Permissions

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