Files
this-Fish 1a17792d7f
Some checks failed
Build repo.json / build (18.x) (push) Has been cancelled
Build repo.json / upload (push) Has been cancelled
JS : 等待至指定时间点 1.2 (#1318)
* Delete repo/js/等待到指定时间 directory

* js : 等待至指定时间点 1.2

1.每5分钟报告一次剩余时间
2.改善描述
2025-07-10 09:29:56 +08:00

43 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 等待到指定时间点
---
## 一、功能说明
**等待至目标时间点,而非等待设置时长!**
本脚本的唯一任务是等待至指定时间点:
- 在目标时间前保持等待状态
- 到达目标时间后自动结束任务
- 让后面的任务在您设置的特定时间后才开始运行。
**定时报告剩余时间**
- 脚本会每5分钟自动报告一次剩余等待时间
- 让您随时掌握脚本进度
---
## 二、使用方法
1. 添加脚本到配置组
2. 右键脚本 → 修改自定义配置
3. 设置目标时间点
### 示例说明
| 当前时间 | 设置目标时间 | 等待结果 |
|----------|--------------|----------|
| 3:00 | 4:00 | 等待1小时 |
| 4:30 | 4:00 | 等待23.5小时次日4:00|
---
## 三、注意事项
- 目标时间早于当前时间 → 自动等待到次日
- 示例:
- 当前时间4:00
- 目标时间3:55
- 等待23小时55分钟次日3:55
**请务必设置目标时间点,否则脚本不会执行!**