> For the complete documentation index, see [llms.txt](https://frinn.gitbook.io/custom-machinery-1.21/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frinn.gitbook.io/custom-machinery-1.21/mod-integrations/kubejs/recipes/time.md).

# Time

**Use this method to add a** [**Time Requirement**](/custom-machinery-1.21/recipes/requirements/time.md) **to the recipe.**

```javascript
.requireTime("time")
```

* The `time` param must be a string that represents a time [Range](/custom-machinery-1.21/misc/range.md).&#x20;
* Look at the [time requirement](/custom-machinery-1.21/recipes/requirements/time.md) wiki page to know what to put here.

### Example

```javascript
ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
  .requireTime("(,12000)")
  
})
```
