农历公历生日转换器

农历公历生日转换器是一种将农历生日转换为公历生日的时间转换工具。

以下是一个简单的农历公历生日转换器,它将输入的农历生日转换为公历生日:。

```。

import datetime。

def convert_to_full_date(birth_date):。

return (birth_date.year - 1911) * 10000 + birth_date.month + birth_date.day。

def convert_to_birth_date(full_date):。

year, month, day = full_date.split('-')。

return year * 10000 + month + day。

def convert_to_农历_birth_date(birth_date):。

year, month, day = birth_date.split('-')。

return (1911 + int(year) - 1911) * 12 + month + day。

def convert_to_gmt_birth_date(birth_date):。

year, month, day = birth_date.split('-')。

return (1911 + int(year) - 1911) * 12 + month + day + 1。

def convert_to_full_birth_date(birth_date):。

return convert_to_full_date(birth_date)。

def convert_to_birth_date(full_date):。

return convert_to_birth_date(full_date)。

def convert_to_农历_birth_date(birth_date):。

return convert_to_农历_birth_date(birth_date)。

def convert_to_gmt_birth_date(birth_date):。

return convert_to_gmt_birth_date(birth_date)。

birth_date = "1990-01-01"。

output_date = convert_to_full_birth_date(birth_date)。

print(output_date)。

```。

这个程序将输入一个农历生日(例如,2023年的正月初一),并输出它的公历生日。你可以根据自己的需要自定义函数,将输入的日期格式化为所需的格式。

阳历

您可能还会喜欢:
生日八字转换器
出生日期生辰八字转换器
星座日期农历阳历转换
出生日期转换生辰八字
出生日期转换生辰八字五行
出生日期转换生辰八字在线
出生日期转换生辰八字口诀
出生日期转换生辰八字怎么算五行
出生日期转换生辰八字对照表
星座按公历还是农历生日
星座按农历还是公历生日
星座看公历还是农历生日
星座的生日是公历还是农历
星座看什么农历还是公历生日
生日是什么星座看公历还是农历