---
meta:
 - name: keywords
   description: api typescript node.js documentation time function
---
# time - @tsed/schema

## Usage

```typescript
import { time } from "@tsed/schema";
```

> See [/packages/specs/schema/src/fn/date.ts](https://github.com/tsedio/tsed/blob/v8.26.2/packages/specs/schema/src/fn/date.ts#L0-L0).

## Overview

```ts
function time(): import("../index.js").JsonSchema<Date>;
```

<!-- Description -->

## Description

Declare a new string model with `format: time`.

See [JsonSchema](/ai/api/specs/schema/types/domain/class-json-schema.md) to discover available methods.
