Code: Select all
[Variables]
Time=2020-02-21 12:00:00
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
---Measures---
[Time]
Measure=Time
TimeStamp=#Time#
TimeStampFormat=%Y-%m-%d %H:%M:%S
Format=%Y-%m-%d %H:%M:%S
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
[Year]
Measure=Time
TimeStamp=([Time:Timestamp])
Format=%Y
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
[Month]
Measure=Time
TimeStamp=([Time:Timestamp])
Format=%m
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
[Day]
Measure=Time
TimeStamp=([Time:Timestamp])
Format=%d
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
[Hour]
Measure=Time
TimeStamp=([Time:Timestamp])
Format=%H
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
[Minute]
Measure=Time
TimeStamp=([Time:Timestamp])
Format=%M
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
[Second]
Measure=Time
TimeStamp=([Time:Timestamp])
Format=%S
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
---Meters---
[TimeText]
Meter=String
FontFace=Consolas
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
FontSize=16
AntiAlias=1
Text="Year = [Year], YearMax = [Year:MaxValue], YearPercent = [Year:%]#CRLF#Month = [Month], MonthMax = [Month:MaxValue], MonthPercent = [Month:%]#CRLF#Day = [Day], DayMax = [Day:MaxValue], DayPercent = [Day:%]#CRLF#Hour = [Hour], HourMax = [Hour:MaxValue], HourPercent = [Hour:%]#CRLF#Minute = [Minute], MinuteMax = [Minute:MaxValue], MinutePercent = [Minute:%]#CRLF#Second = [Second], SecondMax = [Second:MaxValue], SecondPercent = [Second:%]"
UpdateDivider=-1
DynamicVariables=1
Also, in a similar fashion, having the MaxValue of day of year properly set to either 365 or 366 would be an asset:
Code: Select all
[DayOfYear]
Measure=Time
TimeStamp=([Time:Timestamp])
Format=%j
TimeZone=0
DaylightSavingTime=0
UpdateDivider=-1
DynamicVariables=1
P.S. Currently, those :MaxValue and :% values are either 0, 1 or 100, so they basically don't have a max whatsoever. Comparing this to other Rainmeter places where these 2 parameters are automatically and properly set gives one a hint of the usefulness of the idea.
EDIT: Just realized that the implementation of this feature would depend on whether the timestamp of Time measures is the "real" number value to which MaxValue and % apply to, or is just a somewhat "separate entity" internally. If the former, maybe some conversion to user readable values could be done in practice (i.e. when getting [Day:MaxValue] and such values) or the log?