formatDpPeriodTime(start: number, end: number)

Requires:
@ray-js/lock-sdk≥1.0.0

Description

Format the start and end minutes into a DP hex string

Parameters

ParameterTypeRequiredDescription
startnumberYesStart time (minutes since 00:00)
endnumberYesEnd time (minutes)

Return Value

Type: any
Formatted DP value (hex string)

Examples

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