How to Split time in hours and minutes? (1 Viewer)

Marduk65

Portal Pro
November 28, 2011
190
244
59
Home Country
Italy Italy
Hi All,
I needs to have the time splitted in two separated labels, one with actual hour and one with actual minutes. Searching in Wiki pages, looking at the example for Switch function in Skin Expressions page, I found what seems perfectly responding to my needs ( <define>#hour: date.extract('h', #time)</define> ), but unfortunately when I try to use that method, I always receive an error message :( (something like "SystemMissingMethodException: Impossible to find the member. In System.DefaultBinder.BindToMethod(BindingFlags BindingAttr, MethodBase[] Canidates, Object[]& Args, ParameterModifier[] Modifiers, CultureInfo....etc etc (...a very long string :confused: )) .

Please, is there a "good-hearted man" :) that can help me to find what is wrong?

Thank you very much
 

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Im not sure about putting it in a *define*, but this should work if you put it directly in a *label* control:
    Code:
    #(date.extract('h',cdate(#time)))
     

    Marduk65

    Portal Pro
    November 28, 2011
    190
    244
    59
    Home Country
    Italy Italy
    • Thread starter
    • Moderator
    • #3
    ...a little update about this problem: in Windows XP all works properly, while in Windows 7 it doesn't.
    I suppose this means that there are some libraries in a Windows XP based system that are missing in Windows 7, so now the problem is to understand what are the difference and how to solve (MP Installer should installs all required packages, but it seems that there is something missing)

    EDIT 05/02/2013:
    it seems a Windows 7 problem related to some date/time format settings. In particular with Italian-Italy format presets it doesn't works, while with Italian-switzerland format presets all works properly (...very very strange issue).

    Thanks to ltfearme for the kind reply
    Ciao
     
    Last edited:

    Users who are viewing this thread

    Top Bottom