Skip to main content
The Deno 2 Release Candidate is here
Learn more
method TimeUtil.prototype.formatTime
import { TimeUtil } from "https://deno.land/x/sptaki@1.2.0/utils/TimeUtil.d.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'.