Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method TimeUtil.prototype.formatTime
Re-export
import { TimeUtil } from "https://deno.land/x/sptaki@1.2.0/utils/mod.ts";

Formats the time part of a date as a UTC string.

Parameters

date: Date
  • The date to format in UTC.

Returns

string

The formatted time as 'HH-MM-SS'.