C# 클래스 Com.Aurora.AuWeather.LunarCalendar.CalendarInfo

파일 보기 프로젝트 열기: aurora-lzzp/Aurora-Weather 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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[]