It is currently May 20th, 2019, 11:46 pm

Time Measure: New "TimeStamp" Option

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

Time Measure: New "TimeStamp" Option

Kaelri » September 2nd, 2012, 3:47 pm

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
You do not have the required permissions to view the files attached to this post.
User avatar
Akiyamka
Posts: 6
Joined: March 22nd, 2012, 4:40 am

Re: Time Measure: New "TimeStamp" Option

Akiyamka » September 8th, 2012, 8:29 am

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

Re: Time Measure: New "TimeStamp" Option

MerlinTheRed » September 8th, 2012, 11:02 am

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.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!