registration
This commit is contained in:
8
frontend/style/node_modules/date-fns/formatISODuration.js
generated
vendored
8
frontend/style/node_modules/date-fns/formatISODuration.js
generated
vendored
@@ -1,6 +1,3 @@
|
||||
"use strict";
|
||||
exports.formatISODuration = formatISODuration;
|
||||
|
||||
/**
|
||||
* @name formatISODuration
|
||||
* @category Common Helpers
|
||||
@@ -25,7 +22,7 @@ exports.formatISODuration = formatISODuration;
|
||||
* })
|
||||
* //=> 'P39Y2M20DT0H0M0S'
|
||||
*/
|
||||
function formatISODuration(duration) {
|
||||
export function formatISODuration(duration) {
|
||||
const {
|
||||
years = 0,
|
||||
months = 0,
|
||||
@@ -37,3 +34,6 @@ function formatISODuration(duration) {
|
||||
|
||||
return `P${years}Y${months}M${days}DT${hours}H${minutes}M${seconds}S`;
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default formatISODuration;
|
||||
|
||||
Reference in New Issue
Block a user