getDpPeriodTime(dpCode: string)

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

Description

Get the current value of a time-range DP

Parameters

ParameterTypeRequiredDescription
dpCodestringYesDP code

Return Value

Type: GetDpPeriodTimeResult
Start/end time structure of a time-range DP (minutes)
GetDpPeriodTimeResult
PropertyTypeDescription
startnumberStart time (minutes)
endnumberEnd time (minutes)

Examples

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