---
name: "parseDpPeriodTime"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "parseDpPeriodTime - Parse a period DP value to minute offsets."
summary: "Parses raw period DP data into start and end minutes (0–1439)."
---

## parseDpPeriodTime

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

### Description

Parse the raw value of the time‑range DP into start and end minutes

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `dpValue` | `string` | Yes | Raw DP string |

### Return Value

Type: `ParseDpPeriodTimeResult`

Start and end minutes

##### ParseDpPeriodTimeResult

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

### Examples

#### Example

```ts
import { parseDpPeriodTime } from '@ray-js/lock-sdk';
const { start, end } = parseDpPeriodTime(dpValue);
```
