- 简介
- 时间
- 生活服务
- Live2d
- 数据仓库
- 行政区划
- 碧蓝航线
- Bilibili
- 壁纸
- 音乐
- 成语
- 加解密编码
万年历信息
GET
https://api.timelessq.com/time
time
最后修改时间:2023-02-25 11:54:43
请求参数
Query 参数
datetime
可选
示例值:
2020-10-01
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.timelessq.com/time?datetime=2020-10-01'
返回响应
🟢200成功
application/json
Body
errno
integer
必需
errmsg
string
必需
data
object
必需
year
integer
公历年
leapYear
boolean
是否为闰年
month
integer
公历月
maxDayInMonth
integer
公历当月天数
enMonth
string
公历月(英文)
astro
string
星座
cnWeek
string
星期(中文)
enWeek
string
星期(英文)
weekInYear
integer
本年第几周
day
integer
公历日
dayInYear
integer
本年第几天
julianDay
number
儒略日
hour
integer
时
minute
integer
分
second
integer
秒
festivals
array[string]
节日
lunar
object
农历
almanac
object
老黄历
示例
{
"errno": 0,
"errmsg": "",
"data": {
"year": 2020,
"leapYear": true,
"month": 10,
"maxDayInMonth": 31,
"enMonth": "October",
"astro": "天秤座",
"cnWeek": "星期四",
"enWeek": "Thursday",
"weekInYear": 40,
"day": 1,
"dayInYear": 275,
"julianDay": 2459123.8333333335,
"hour": 8,
"minute": 0,
"second": 0,
"festivals": [
"国庆节",
"中秋节"
],
"lunar": {
"zodiac": "鼠",
"year": 2020,
"month": 8,
"day": 15,
"cnYear": "二零二零",
"cnMonth": "八月",
"cnDay": "十五",
"cyclicalYear": "庚子",
"cyclicalMonth": "乙酉",
"cyclicalDay": "丁丑",
"hour": "子时",
"maxDayInMonth": 30,
"leapMonth": 4,
"yuexiang": "望",
"wuhou": "蛰虫坯户",
"shujiu": "",
"sanfu": "",
"solarTerms": {}
},
"almanac": {
"yi": "嫁娶 祭祀 祈福 求嗣 沐浴 出火 出行 拆卸 修造 动土 进人口 开市 交易 立券 入宅 移徙 安床 栽种 纳畜 入殓 安葬 启钻 除服 成服",
"ji": "无",
"chong": "生肖冲(辛未)羊",
"sha": "煞东",
"nayin": "涧下水",
"shiershen": "定神",
"xingxiu": "斗宿",
"zheng": "木",
"shou": "玄武",
"pengzubaiji": [
"丁不剃头头必生疮",
"丑不冠带主不还乡"
],
"jishenfangwei": {
"xi": "离-正南",
"yanggui": "乾-西北",
"yingui": "兑-正西",
"fu": "巽-东南",
"cai": "坤-西南"
},
"liuyao": "佛灭",
"jiuxing": "八白土洞明",
"taisui": "离-正南"
}
}
}
🟠400Invalid status value
修改于 2023-02-25 11:54:43