农历公历生日转换器是一种将农历日期转换为公历日期的工具,主要用于计算跨越两个日历系统的日期差距。
以下是一个简单的农历公历生日转换器,以计算相差的天数:。
```。
import datetime。
def convert_to_full_year(year):。
return (year - 1911) % 400 + 1911。
def convert_to_year(year):。
return year - 1911。
def convert_to_month(year, month):。
return (year - 1911) % 12 + 1。
def convert_to_day(year, month, day):。
return day。
def convert_to_full_month(year, month):。
return (year - 1911) % 12 + 1。
def convert_to_year_with_days(year, month, day):。
return (year - 1911) % 365 + 1。
def convert_to_last_day_of_month(year, month):。
return month[-1]。
def convert_to_last_weekday(year, month, day):。
return day % 7。
def convert_to_total_days(year, month, day):。
return (day + 31 + (month - 1) * 30 + (year - 1911) * 365) % 365。
def convert_to_year_with_month_days(year, month, day):。
return (day + (month - 1) * 31 + (year - 1911) * 365) % 365。
def convert_to_last_month_day(year, month):。
return (month - 1) * 31 + 1。
def convert_to_year_with_year(year):。
return year。
def convert_to_total_month_days(year, month):。
return ((month - 1) * 31 + 30) * 365 + 1。
def convert_to_year_with_days_in_year(year, month, day):。
return (day + (month - 1) * 31 + (year - 1911) * 365) % 365。
year_to_month = {。
1:。
您可能还会喜欢:
生日八字转换器
出生日期生辰八字转换器
星座日期农历阳历转换
出生日期转换生辰八字
出生日期转换生辰八字五行
出生日期转换生辰八字在线
出生日期转换生辰八字口诀
出生日期转换生辰八字怎么算五行
出生日期转换生辰八字对照表
星座按公历还是农历生日
星座按农历还是公历生日
星座看公历还是农历生日
星座的生日是公历还是农历
星座看什么农历还是公历生日
生日是什么星座看公历还是农历
