dateStringToDate()
function dateStringToDate(
date,
time,
offset): Date;
Defined in: date/dateStringToDate.ts:9
UTC 时间转换
Parameters
| Parameter | Type | Description |
|---|---|---|
date | string | 日期字符串,格式如 '2018-12-04' |
time | string | 时间字符串,格式如 '19:09:10' |
offset | number | 时区偏移量(分钟) |
Returns
Date