UNPKG
healthone
Version:
latest (7.0.0)
7.0.0
6.1.0
6.0.2
6.0.1
6.0.0
5.0.2
5.0.1
5.0.0
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.0.0
2.0.0
1.0.0
0.1.0
0.0.1
0.0.0
Health One format library for JavaScript
infoderm.github.io/healthone
infoderm/healthone
healthone
/
dist
/
module
/
stringifyTime.js
2 lines
•
248 B
JavaScript
View Raw
1
2
import
{format
as
dateFormat,parseISO
as
dateParseISO}
from
"date-fns"
;
export
default
function
stringifyTime
(
a,b
){
const
c=a
instanceof
Date
?
a
:
dateParseISO
(a),d=
dateFormat
(c,b.
timeFormat
);
return
"0000"
===d?
""
:d}
//# sourceMappingURL=stringifyTime.js.map