
Code: Select all
;example, return current year in Julian calendar
[mYear]
Measure=Plugin
Plugin=GlobalCalendarRM
Calendar=Julian
Lunar=0
DateTime=
DataType=year
default value is "empty" string and plugin will use Gregorian calendar
Valid values for Calendar option with Lunar=1 are: japanese, korean and taiwan
default value is "empty" string and plugin will use chinese lunar calendar
Valid values for DataType option are:
- day – will return day of month
- month – will return month
- year – will return year
- era – will return era
- dayofweek – will return day of week, Sunday is 0, Monday is 1, ...
- dayofyear – will return day of year
- weekofyear – will return week of year
- daysinmonth – will return number of days in month
- daysinyear – will return number of days in year
- monthsinyear – will return number of months in year
- leapmonth – will return if leap month, if calendar support it, if not then 0
- isleapday – will return 1 day is leap day, if not then 0
- isleapmonth – will return 1 month is leap month, if not then 0
- isleapyear – will return 1 year is leap year, if not then 0
- sexagenaryyear – will return year in the sexagenary cycle
- celestialstem – will return celestial stem
- terrestrialbranch – will return terrestrial branch
DateTime option allows to use custom date. To determine best format to parse use
Code: Select all
[mTime]
Measure=Time
Format=locale-date
Source Code and latest releases:
https://github.com/ozone10/Rainmeter-GlobalCalendarRM