---
name: "getDpPeriodTime"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "getDpPeriodTime - Get time period."
summary: "Get time period."
---

## getDpPeriodTime

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Get the current value of a time-range DP

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `dpCode` | `string` | Yes | DP code |

### Return Value

Type: `GetDpPeriodTimeResult`

Start/end time structure of a time-range DP (minutes)

##### GetDpPeriodTimeResult

| Property | Type | Description |
| --- | --- | --- |
| `start` | `number` | Start time (minutes) |
| `end` | `number` | End time (minutes) |

### Examples

#### Example

```ts
import { getDpPeriodTime } from '@ray-js/lock-sdk';
const period = getDpPeriodTime();
```
