---
name: "formatDpPeriodTime"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "formatDpPeriodTime - Format minutes into a period DP hex string."
summary: "Converts start and end minutes into the hex string required by period-type DPs."
---

## formatDpPeriodTime

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

### Description

Format the start and end minutes into a DP hex string

### Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `start` | `number` | Yes | Start time (minutes since 00:00) |
| `end` | `number` | Yes | End time (minutes) |

### Return Value

None


### Examples

#### Example

```ts
import { formatDpPeriodTime } from '@ray-js/lock-sdk';
const dpValue = formatDpPeriodTime(22 * 60, 8 * 60); // 22:00 - 08:00
```
