It is currently April 23rd, 2024, 9:02 pm
CountUP (down) timer
-
- Posts: 7
- Joined: May 17th, 2017, 5:57 pm
Re: CountUP (down) timer
Ok, when i test it, i will put the review
-
- Posts: 7
- Joined: May 17th, 2017, 5:57 pm
Re: CountUP (down) timer
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!
The Timer is great it work exactly what needs to.
Thank you very much for big help! Very appreciated.
Wish you all best!
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
-
- Posts: 3
- Joined: November 17th, 2017, 1:36 am
Re: CountUP (down) timer
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!
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!
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: CountUP (down) timer
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#
-
- Posts: 3
- Joined: November 17th, 2017, 1:36 am
Re: CountUP (down) timer
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.
Thank you.
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: CountUP (down) timer
The TargetDate variable must be in the format of: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
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.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 3
- Joined: November 17th, 2017, 1:36 am
Re: CountUP (down) timer
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.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.
Thank you.
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: CountUP (down) timer
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?
The code works.
What does the 'Open log' show for the measure values of your skin?
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 571
- Joined: February 28th, 2011, 3:20 pm
- Location: Vienna, Austria
Re: CountUP (down) timer
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":
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