Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.24.1/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; }