It is currently March 28th, 2024, 11:51 am

Time Measure: New "TimeStamp" Option

Changes made during the Rainmeter 2.5 beta cycle and earlier.
Post Reply
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am
Contact:

Time Measure: New "TimeStamp" Option

Post by Kaelri »

In the latest beta, we've added a new option to the Time measure: TimeStamp.

Normally, the Time measure returns the current time and date. If a TimeStamp is provided, the measure returns the date it is given. Time stamps are given in Windows time (which is the number of seconds since January 1st, 1601). For example,

Code: Select all

[MeasureTheBeginningOfTime]
Measure=Time
TimeStamp=0
Format=%a, %b %#d %Y - %H:%M:%S
Screenshot30.png
The TimeStamp option also accepts formulas. For example, you can use this to find yesterday's date, using the new section variables feature to get the number value of the current time:

Code: Select all

[MeasureToday]
Measure=Time

[MeasureYesterday]
Measure=Time
TimeStamp=([MeasureToday:]-86400)
Format=%a, %b %#d %Y - %H:%M:%S
DynamicVariables=1
User avatar
Akiyamka
Posts: 6
Joined: March 22nd, 2012, 4:40 am

Re: Time Measure: New "TimeStamp" Option

Post by Akiyamka »

I have no idea where this can be used :confused:
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Time Measure: New "TimeStamp" Option

Post by MerlinTheRed »

Basically it helps you to format a time stamp nicely.

Before, you could only display the current time. Now you can give the measure any time stamp number value (which you might have used for a calculation) and turn it into a nicely formatted string.
Post Reply