Hi Guys,
At the moment I am workin on a skin which displays the current time.
To support the simple String of the different values I decided to put the Strings inside a BarMeter showing the progress of the hours, seconds and so on.
All works fine but the Weekdays.
I used the Measure "%w - Weekday as decimal number (0 - 6; Sunday is 0)" to get the current Day. But I am interesting in having the Monday as the first day of the week so I tried to solve the peoblem like this:
First, you have Substitute= twice on the measure and a small typo with "," instead of ":" in one spot. Second, I added a "-" to the format statement, so I can then properly do the Substitute without having the fact that they are done one after another cause part two just overwrite part one. Then, I used a Calc measure to set the MinValue and MaxValue, as they are only valid on measures that return numbers, and the Time measure returns a string.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Now I got the next problem^^
When I draw the bars of days, the masure must have a MaxValue which depends of the number of days the month has.
How could I implement that?
Last edited by Fried_Ice on December 16th, 2011, 8:09 pm, edited 1 time in total.
[msYear]
Measure=Time
Format=%#Y
;Gotta test for a leap year
[cFeb]
Measure=Calc
Formula=28+((msYear%4)=0)
[msMonth]
Measure=Time
Format=%#m
[cMonthDays]
Measure=Calc
Formula=-msMonth
Subsitute="-1":"31","-2":"[cFeb]","-3":"31","-4":"30","-5":"31","-6":"30","-7":"31","-8":"31","-9":"30","-10":"31","-11":"30","-12":"31"
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .