C# Класс Com.Aurora.AuWeather.LunarCalendar.CalendarInfo

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BirthStones string[]
ChineseDayName string[]
ChineseMonthName string[]
ChineseWeekName string[]
Constellations string[]

Открытые методы

Метод Описание
CalcConstellation ( System.DateTime date ) : void

获取指定日期的星座和生日石

CalendarInfo ( ) : System

默认构造体传入当前日期

CalendarInfo ( System.DateTime date ) : System

生成指定日期的公历和阴历

FromLunarDate ( System.DateTime date, bool IsLeapMonth ) : CalendarInfo

create calendarInfo of Lunar

FromLunarDate ( int year, int month, int day, bool IsLeapMonth ) : CalendarInfo

create calendarInfo of Lunar

FromLunarDate ( string date, bool IsLeapMonth ) : CalendarInfo

create calendarInfo of Lunar

GetDateFromLunarDate ( System.DateTime date, bool IsLeapMonth ) : System.DateTime

Lunar To Solar

GetDateFromLunarDate ( int year, int month, int day, bool IsLeapMonth ) : System.DateTime

农历转公历

Приватные методы

Метод Описание
GetLunarNewYearDate ( int year ) : System.DateTime

根据指定公历年查找农历新年

LoadFromSolarDate ( ) : void

Описание методов

CalcConstellation() публичный Метод

获取指定日期的星座和生日石
public CalcConstellation ( System.DateTime date ) : void
date System.DateTime specifica date
Результат void

CalendarInfo() публичный Метод

默认构造体传入当前日期
public CalendarInfo ( ) : System
Результат System

CalendarInfo() публичный Метод

生成指定日期的公历和阴历
public CalendarInfo ( System.DateTime date ) : System
date System.DateTime specific date
Результат System

FromLunarDate() публичный статический Метод

create calendarInfo of Lunar
public static FromLunarDate ( System.DateTime date, bool IsLeapMonth ) : CalendarInfo
date System.DateTime Lunar Date
IsLeapMonth bool IsLeapMonth
Результат CalendarInfo

FromLunarDate() публичный статический Метод

create calendarInfo of Lunar
public static FromLunarDate ( int year, int month, int day, bool IsLeapMonth ) : CalendarInfo
year int Lunar Year
month int Lunar Month
day int Lunar Date
IsLeapMonth bool IsLeapMonth
Результат CalendarInfo

FromLunarDate() публичный статический Метод

create calendarInfo of Lunar
public static FromLunarDate ( string date, bool IsLeapMonth ) : CalendarInfo
date string ie: 20070209
IsLeapMonth bool IsLeapMonth
Результат CalendarInfo

GetDateFromLunarDate() публичный статический Метод

Lunar To Solar
public static GetDateFromLunarDate ( System.DateTime date, bool IsLeapMonth ) : System.DateTime
date System.DateTime Lunar Date
IsLeapMonth bool IsLeapMonth
Результат System.DateTime

GetDateFromLunarDate() публичный статический Метод

农历转公历
public static GetDateFromLunarDate ( int year, int month, int day, bool IsLeapMonth ) : System.DateTime
year int Lunar Year
month int Lunar Month
day int Lunar day
IsLeapMonth bool IsLeapMonth
Результат System.DateTime

Описание свойств

BirthStones публичное статическое свойство

public static string[] BirthStones
Результат string[]

ChineseDayName публичное статическое свойство

public static string[] ChineseDayName
Результат string[]

ChineseMonthName публичное статическое свойство

public static string[] ChineseMonthName
Результат string[]

ChineseWeekName публичное статическое свойство

public static string[] ChineseWeekName
Результат string[]

Constellations публичное статическое свойство

public static string[] Constellations
Результат string[]