> For the complete documentation index, see [llms.txt](https://vuxjs.gitbook.io/vux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vuxjs.gitbook.io/vux/shi-jian-zu-jian/ri-qi-dao-ji-shi.md).

# 日期倒计时

## 常用场景

* 活动报名、商品折扣时间倒计时
* 有效支付时间倒计时

## 选项

## 示例

### 一般使用

\`\`\` vux height=60 components=Clocker

&#x20;距离2017-04-01还有 \`\`\` ### 在Cell中使用 \`\`\` vux height=65 components=Clocker,Group,Cell \`\`\` ### 自定义html模板 > 分割数字只支持两位日期，如果有两位以上，可以考虑使用\`on-tick\`事件来处理 \`\`\` vux height=120 components=Clocker,Group,Cell %D 天 %H 小时 %M 分 %S 秒 %\_D1 %\_D2天 %\_H1 %\_H2时 %\_M1 %\_M2分 %\_S1 %\_S2秒

&#x20;.day { background-color:#000; color:#fff; text-align:center; display:inline-block; padding:0 3px; border-radius:3px; }&#x20;

\`\`\`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vuxjs.gitbook.io/vux/shi-jian-zu-jian/ri-qi-dao-ji-shi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
