Module

x/logger/date.ts>default

logger for deno
Latest
class default
extends Date
import { default } from "https://dotland.deno.dev/x/logger@v1.1.7/date.ts";

Dater extends Date to provide more formating methods.

Methods

toLocaleDateString(separator?): string

Get date string as yyyy-mm-dd

toLocaleString(separator?): string

Get date string as yyyy-mm-dd hh:mm:ss

Get time string as hh:mm:ss