Skip to content

Commit

Permalink
docs(宏列表): 6.4增加详细的调用方式
Browse files Browse the repository at this point in the history
  • Loading branch information
Raven-Book committed Sep 25, 2024
1 parent e222ac1 commit 9fd1db9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/黑星的Macro合集/宏列表 第一弹.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ _npc.first _npc.last

### 6.4 其他API

1. `getDaysInMonth(year, month)`
1. `$clock.getDaysInMonth(year, month)`
该方法用于获取指定年份和月份的天数,未提供年份和月份默认使用当前的年份和月份。

**输出示例:**
Expand All @@ -349,7 +349,7 @@ _npc.first _npc.last

---

2. `isInRange(rangeStr)`
2. `$clock.isInRange(rangeStr)`
该方法用于判断当前时间是否在指定的时间范围内。`rangeStr` 是一个字符串,支持以下格式:
- `YYYY-MM-DD HH:MM to YYYY-MM-DD HH:MM`
- `YYYY-MM-DD to YYYY-MM-DD`
Expand All @@ -361,7 +361,7 @@ _npc.first _npc.last

---

3. `isLeapYear(year)`
3. `Clock.isLeapYear(year)`
该方法用于判断指定年份是否为闰年。

**输出示例:**
Expand All @@ -370,7 +370,7 @@ _npc.first _npc.last

---

4. `weekday()`
4. `$clock.weekday()`
该方法用于获取当前日期是星期几返回值为数字。`0` 是星期天, `1~6` 是周一到周六。

**输出示例:**
Expand Down

0 comments on commit 9fd1db9

Please sign in to comment.