You are going to want to use Time measure(s)Given a measure [UTCstamp] with a value with a format such as 202410071700, and another measure [Offset] with a value with a format such as 3 or -7, how to apply the offset to the hour in the timestamp, so that the resulting value is 1000 or 2000, which can be used in a meter?
Code:
[Rainmeter]Update=1000AccurateText=1DynamicWindowSize=1[Variables]OffsetHours=-7[MeasureStarting]Measure=TimeTimeStamp=202410071700TimeStampFormat=%Y%m%d%H%MFormat=%A, %B %#d, %Y at %H:%M:%S[MeasureOffset]Measure=CalcFormula=(#OffsetHours# * 3600)[MeasureResolved]Measure=TimeTimeStamp=([MeasureStarting:TimeStamp] + [MeasureOffset:])DynamicVariables=1Format=%A, %B %#d, %Y at %H:%M:%S[MeasureResolvedHM]Measure=TimeTimeStamp=[MeasureResolved:TimeStamp]DynamicVariables=1Format=%H%M[MeterString]Meter=StringMeasureName=MeasureStartingMeasureName2=MeasureOffsetMeasureName3=MeasureResolvedMeasureName4=MeasureResolvedHMFontColor=255,255,255,255FontSize=15SolidColor=0,0,0,1AntiAlias=1Text=%1#CRLF#The Offset is: #OffsetHours# Hours or %2 Seconds#CRLF#%3#CRLF#The hour/min is: %4
https://docs.rainmeter.net/manual/measures/time/
Just remember that everything in the world of Time in Rainmeter is measured in "seconds" at the root of it.
Statistics: Posted by jsmorley — Today, 12:23 am