---
url: /api/specs/schema/types/fn/function-time.md
description: api documentation of time from @tsed/schema
---

## Usage

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

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

## Overview

```ts
function time(): import("@tsed/schema").JsonSchema<Date>;
```

## Description

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

See @@JsonSchema@@ to discover available methods.
