It is currently December 15th, 2019, 6:19 am

Adding 7 minutes to clock

Get help with installing and using Rainmeter.
Cntl-Alt-Delete
Posts: 3
Joined: March 7th, 2019, 9:49 am

Re: Adding 7 minutes to clock

Cntl-Alt-Delete » March 13th, 2019, 1:04 am

Thanks balala - doing the update to the most recent version fixed it. Much appreciated!
C-A-D
User avatar
balala
Rainmeter Sage
Posts: 9267
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Adding 7 minutes to clock

balala » March 13th, 2019, 4:53 pm

Cntl-Alt-Delete wrote:
March 13th, 2019, 1:04 am
Thanks balala - doing the update to the most recent version fixed it.
:thumbup:
It's always a good idea to keep Rainmeter more or less updated and use the most recent (or at least almost the most recent) version.
I'm glad you got it working now.
pyahoo61
Posts: 1
Joined: October 11th, 2019, 12:37 am

Re: subtracting 5 hours and 30 minutes to clock

pyahoo61 » October 11th, 2019, 12:41 am

hi, i want to edit my clock time.
Hour= -5
and Minutes = -30
please can anyone help me???
clock codes are down.


Code: Select all

[Rainmeter]
Update=100

[Metadata]
Name=LIM!T Clock
Author=Justin Ware (injust29.deviantart.com)
Information=Digital clock with fill animation
License=CC BY-NC-SA
Version=1.0

[Variables]
@include1=#@#limvar.ini
; main string size
size=75

;---Styles---
@include2=#@#styles.ini

;---Measures---

; Time
[mTime]
Measure=Time
[mHour]
Measure=Time
Format=%I
[mMin]
Measure=Time
Format=%M
[mSec]
Measure=Time
Format=%S
[mAMPM]
Measure=Time
Format=%p

; Calculations
[cHourH]
Measure=Calc
Formula=(FRAC(mTime/3600)+#offset#)*#lineheight#*#size#
[cMinH]
Measure=Calc
Formula=(FRAC(mTime/60)+#offset#)*#lineheight#*#size#
[cAmPmH]
Measure=Calc
Formula=(FRAC(mTime/43200)+#offset#)*#lineheight#*#size#*0.2

;---Meters---

[HourBG]
MeasureName=mHour
Meter=String
MeterStyle=sText | sBG
X=(2*#size#)
Y=(1.6*#size#)
StringAlign=RightBottom
[HourFill]
MeasureName=mHour
Meter=String
MeterStyle=sText | sFill
W=(2*#size#)
H=[cHourH:]
StringAlign=RightBottom
FontColor=#color1#

[MinBG]
MeasureName=mMin
Meter=String
MeterStyle=sText | sBG
X=(-0.05*#size#)r
Y=0r
[MinFill]
MeasureName=mMin
Meter=String
MeterStyle=sText | sFill
W=(2*#size#)
H=[cMinH:]
FontColor=#color2#

[ampmBG]
MeasureName=mAMPM
Meter=String
MeterStyle=sText | sBG
X=(-0.22*#size#)r
Y=(-0.85*#size#)r
FontSize=(#size#*0.2)
StringStyle=BOLD
[ampmFill]
MeasureName=mAMPM
Meter=String
MeterStyle=sText | sFill
W=(2*#size#)
H=[cAmPmH:]
FontSize=(#size#*0.2)
StringStyle=BOLD
FontColor=#color3#
Last edited by balala on October 11th, 2019, 6:38 am, edited 1 time in total.
Reason: Please use <code> tags whenever are you posting code snippets. It's the </> button.
User avatar
balala
Rainmeter Sage
Posts: 9267
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: subtracting 5 hours and 30 minutes to clock

balala » October 11th, 2019, 3:37 pm

pyahoo61 wrote:
October 11th, 2019, 12:41 am
hi, i want to edit my clock time.
Hour= -5
and Minutes = -30
please can anyone help me???
clock codes are down.
You mean you'd like to extract five and half a hour from the current time? If so, add the following two options to all of the [mHour], [mMin], [mSec] and [mAMPM] measures:

Code: Select all

TimeStamp=([mTime:TimeStamp]-5*3600-30*60)
DynamicVariables=1