shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- hourstrueBoolean
Display the hours or not
- minutestrueBoolean
Display the minutes or not
- secondstrueBoolean
Display the seconds or not
- date”new Date()“Date
The date to use to display the time
Return
- -String
The time string
Example
import { utcTime } from '@blackbyte/sugar/date';
utcTime(); // => 10:20:32
utcTime(true, true, false); // => 10:20Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space