utcTime

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.datetime

This method allows you to display easily the time in UTC format like “10:20:32”

Params

  1. hourstrueBoolean

    Display the hours or not

  2. minutestrueBoolean

    Display the minutes or not

  3. secondstrueBoolean

    Display the seconds or not

  4. date”new Date()“Date

    The date to use to display the time

Return

  1. -String

    The time string

Example

import { utcTime } from '@blackbyte/sugar/date';
utcTime(); // => 10:20:32
utcTime(true, true, false); // => 10:20

Todo

  • testsnormal