# 自定义工作日与休息日

**URL:** <https://forum.plantodo.app/t/topic/10>\
**Category:** 技巧 skills\
**Created:** [2026 年5 月 2 日 04:19 UTC](https://forum.plantodo.app/t/topic/10 "2026-05-02T04:19:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![ahfei](https://forum.plantodo.app/user_avatar/forum.plantodo.app/ahfei/32/8_2.png) [@ahfei](https://forum.plantodo.app/u/ahfei)\
发布日期： [2026 年5 月 2 日 04:19 UTC](https://forum.plantodo.app/t/topic/10/1 "2026-05-02T04:19:48Z")

</div>

在 PlanTodo 里，可以像写规则一样，自定义你的工作日与休息日。

例如：

- 默认休息日是周六、周日
- 但月末最后一个周六需要上班
- 同时加入法定节假日
- 而工作日则是"除了休息日之外的所有日期"

这些规则之间还能互相引用、组合与排除。

官网： [https://plantodo.app/](https://plantodo.app/)

API 请求的数据

```auto
- desc: 休息日
  trigger:
  - every: [Sat, Sun]
  - every: [5-1, 5-2, 5-3, 5-4, 5-5]
  except: 月末周六
  tag: 休息日
- desc: 月末周六
  every: month
  last: Sat
  tag: 月末周六

- desc: 工作日
  every: day
  except: 休息日
  tag: 工作日

```

通过这种方式，可以轻松实现：

- 调休
- 不同国家的节假日体系
- 公司内部轮班制度
- 单双休
- 自定义值班日
- 特殊周期性安排

本质上，它不是"写死的重复任务"，而是一套可组合、可推导的时间规则系统。
