Page 2 of 3
Re: CountUP (down) timer
Posted: May 27th, 2017, 7:22 pm
by bowas1984
Ok, when i test it, i will put the review
Re: CountUP (down) timer
Posted: July 11th, 2017, 9:32 am
by bowas1984
First i apologies for long silent.
The Timer is great it work exactly what needs to.
Thank you very much for big help! Very appreciated.
Wish you all best!
Re: CountUP (down) timer
Posted: July 11th, 2017, 9:39 am
by balala
Glad to help.
Re: CountUP (down) timer
Posted: November 17th, 2017, 1:40 am
by kchongjen
Hey sorry guys but is there any way to modify the solution provided above in order to set a specific date as the first day and count the total number of days until today?
for example: I will set 1st January 2017 as the first day.
Until today (17th November 2017), the system will show 321 days.
Sorry I am totally new to rainmeter. Just started it yesterday...
Thanks for your help in advanced!
Re: CountUP (down) timer
Posted: November 17th, 2017, 9:58 am
by mak_kawa
My try.
Code: Select all
[Rainmeter]
Update=1000
BackGroundMode=2
SolidColor=128,128,128,192
[Variables]
TargetDay="1 Jan 2017"
;TargetDay="2017-01-01"
[TargetDayMeasure]
Measure=Time
TimeStamp=#TargetDay#
TimeStampFormat=%#d %b %Y
;TimeStampFormat=%Y-%m-%d
[CurrentDayMeasure]
Measure=Time
[DiffSecondMeasure]
Measure=Calc
Formula=[CurrentDayMeasure:]-[TargetDayMeasure:]
DynamicVariables=1
[DiffDayMeasure]
Measure=Calc
Formula=Floor([DiffSecondMeasure]/86400)
DynamicVariables=1
[MeterDay]
Meter=String
MeasureName=DiffDayMeasure
Text=[%1] days from#CRLF# #TargetDay#
Re: CountUP (down) timer
Posted: November 20th, 2017, 1:49 am
by kchongjen
Sorry for late reply. I have tried the code provided by mak_kawa. However, it shows 152264 days from 1 Jan 2017. May I know what is possibly the problem? Is it the incompatibility of my laptop?
Thank you.
wtf.PNG
Re: CountUP (down) timer
Posted: November 20th, 2017, 2:25 am
by eclectic-tech
kchongjen wrote:Sorry for late reply. I have tried the code provided by mak_kawa. However, it shows 152264 days from 1 Jan 2017. May I know what is possibly the problem? Is it the incompatibility of my laptop?
Thank you.
wtf.PNG
The TargetDate variable must be in the format of:
1 Jan 2017 {3 parts: 'Day Number' 'Short Month Name' '4-Number Year'}
If you set it to:
01/01/2017 or any other arrangement, it will not work, and will show you the time from 1 Jan 1601.
Re: CountUP (down) timer
Posted: November 20th, 2017, 2:41 am
by kchongjen
eclectic-tech wrote:The TargetDate variable must be in the format of:
1 Jan 2017 {3 parts: 'Day Number' 'Short Month Name' '4-Number Year'}
If you set it to: 01/01/2017 or any other arrangement, it will not work, and will show you the time from 1 Jan 1601.
Yes Sir. I understand that. That's why I remain the date format provided by mak_kawa. However, it still shows 152264 days from 1 Oct 2017.
134.PNG
Thank you.
Re: CountUP (down) timer
Posted: November 20th, 2017, 3:21 am
by eclectic-tech
Then you were right to suggest a system problem.
The code works.
What does the 'Open log' show for the measure values of your skin?
Re: CountUP (down) timer
Posted: November 20th, 2017, 9:26 am
by ikarus1969
i guesss kchongjen is on a system with a locale other than "english".
Please kchongjen, try to add
TimeStampLocale=en to the measure "TargetDayMeasure" so that it knows the month is the abbreviated form of "October":
Code: Select all
[TargetDayMeasure]
Measure=Time
TimeStamp=#TargetDay#
TimeStampFormat=%#d %b %Y
TimeStampLocale=en
;TimeStampFormat=%Y-%m-%d