It is currently March 28th, 2024, 9:54 am

CountUP (down) timer

Get help with creating, editing & fixing problems with skins
bowas1984
Posts: 7
Joined: May 17th, 2017, 5:57 pm

Re: CountUP (down) timer

Post by bowas1984 »

Ok, when i test it, i will put the review :D
bowas1984
Posts: 7
Joined: May 17th, 2017, 5:57 pm

Re: CountUP (down) timer

Post 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!
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: CountUP (down) timer

Post by balala »

Glad to help.
kchongjen
Posts: 3
Joined: November 17th, 2017, 1:36 am

Re: CountUP (down) timer

Post 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!
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: CountUP (down) timer

Post 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#
kchongjen
Posts: 3
Joined: November 17th, 2017, 1:36 am

Re: CountUP (down) timer

Post 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
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: CountUP (down) timer

Post 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.
kchongjen
Posts: 3
Joined: November 17th, 2017, 1:36 am

Re: CountUP (down) timer

Post 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.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: CountUP (down) timer

Post 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?
User avatar
ikarus1969
Posts: 571
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: CountUP (down) timer

Post 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
Post Reply