Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/somefn/js/date.ts>parseDate

some functions for deno
Go to Latest
function parseDate
import { parseDate } from "https://deno.land/x/somefn@v0.27.0/js/date.ts";

解析 Date 对象的时间

Parameters

optional
v: Date | { unixMS: MillisecondTimestamp; } | { unixS: UnixTimestamp; } = [UNSUPPORTED]

需要解析的时间, 默认为当前

optional
opt: { isUTC?: boolean; } = [UNSUPPORTED]

参数

Returns

{ y: string; m: string; d: string; h: string; min: string; s: string; }