# 周末安排总被工作打断？让任务自动延期到合适的时间

**URL:** <https://forum.plantodo.app/t/topic/21>\
**Category:** 技巧 skills\
**Created:** [2026 年6 月 20 日 03:17 UTC](https://forum.plantodo.app/t/topic/21 "2026-06-20T03:17:45Z")\
**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 年6 月 20 日 03:17 UTC](https://forum.plantodo.app/t/topic/21/1 "2026-06-20T03:17:45Z")

</div>

让计划遵循你的生活节奏，而不是让生活去迁就计划。

很多计划并不是到了时间就一定适合执行。

例如，你习惯每个月末周日打扫房间，但有时候因为调休或加班，周日成了工作日。这时要么强行完成，要么忘记处理，最后计划越来越乱。

PlanTodo 的 delay\_if 可以让任务被触发后，如果满足某个条件就暂停（例如"今天是工作日"），等到条件不再满足时自动恢复。

这样既不会错过重要事项，也不会因为时间不合适而频繁手动修改任务日期。

* * *

下面是一个用例，你可以在 [https://plantodo.app/](https://plantodo.app/) 里运行查看结果

```yaml
- desc: 打扫屋子
  every: month
  last: Sun
  delay_if: workday
- desc: 工作日
  if: 中国法定工作日
  tag: workday

```

> 中国法定工作日 是一个 PlanTodo 内置变量，会在周一到周五触发，并排除节假日
