primary_care_admin_binder 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +32 -11
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7997,29 +7997,50 @@ var makeName = function makeName() {
|
|
|
7997
7997
|
var prefixVal = (prefix === null || prefix === void 0 ? void 0 : (_prefix$coding = prefix.coding) === null || _prefix$coding === void 0 ? void 0 : (_prefix$coding$ = _prefix$coding[0]) === null || _prefix$coding$ === void 0 ? void 0 : _prefix$coding$.display) || "";
|
|
7998
7998
|
var suffixVal = (suffix === null || suffix === void 0 ? void 0 : (_suffix$coding = suffix.coding) === null || _suffix$coding === void 0 ? void 0 : (_suffix$coding$ = _suffix$coding[0]) === null || _suffix$coding$ === void 0 ? void 0 : _suffix$coding$.display) || "";
|
|
7999
7999
|
return "".concat(prefixVal && prefixVal + ".").concat(text && text + " ").concat(given && given + " ").concat(suffixVal && suffixVal);
|
|
8000
|
-
};
|
|
8000
|
+
}; // const getUtcTime = (date) => {
|
|
8001
|
+
// let a = null
|
|
8002
|
+
// if (date) {
|
|
8003
|
+
// a = new Date(moment(date))
|
|
8004
|
+
// } else {
|
|
8005
|
+
// a = new Date(date)
|
|
8006
|
+
// }
|
|
8007
|
+
// a = a.toUTCString()
|
|
8008
|
+
// return (new Date(a).getTime()) / 1000
|
|
8009
|
+
// };
|
|
8010
|
+
// const utcTOLocal = (date, format) => {
|
|
8011
|
+
// let Ndate = new Date(date * 1000);
|
|
8012
|
+
// let fmt = format ? format : "DD-MM-YYYY"
|
|
8013
|
+
// if (format) {
|
|
8014
|
+
// return moment(Ndate).format(fmt);
|
|
8015
|
+
// } else {
|
|
8016
|
+
// return moment(Ndate)
|
|
8017
|
+
// }
|
|
8018
|
+
// };
|
|
8001
8019
|
|
|
8002
|
-
var getUtcTime = function getUtcTime(date) {
|
|
8003
|
-
var a = null;
|
|
8004
8020
|
|
|
8021
|
+
var getUtcTime = function getUtcTime(date) {
|
|
8005
8022
|
if (date) {
|
|
8006
|
-
|
|
8023
|
+
return moment.utc(date).unix();
|
|
8007
8024
|
} else {
|
|
8008
|
-
|
|
8025
|
+
return moment.utc().unix();
|
|
8009
8026
|
}
|
|
8010
|
-
|
|
8011
|
-
a = a.toUTCString();
|
|
8012
|
-
return new Date(a).getTime();
|
|
8013
8027
|
};
|
|
8014
8028
|
|
|
8015
8029
|
var utcTOLocal = function utcTOLocal(date, format) {
|
|
8016
|
-
var Ndate = new Date(
|
|
8030
|
+
var Ndate = new Date();
|
|
8031
|
+
|
|
8032
|
+
if (typeof date === "number") {
|
|
8033
|
+
Ndate = moment.unix(date);
|
|
8034
|
+
} else {
|
|
8035
|
+
Ndate = moment(date);
|
|
8036
|
+
}
|
|
8037
|
+
|
|
8017
8038
|
var fmt = format ? format : "DD-MM-YYYY";
|
|
8018
8039
|
|
|
8019
8040
|
if (format) {
|
|
8020
|
-
return moment(Ndate).format(fmt);
|
|
8041
|
+
return moment.utc(Ndate).local().format(fmt);
|
|
8021
8042
|
} else {
|
|
8022
|
-
return moment(Ndate);
|
|
8043
|
+
return moment.utc(Ndate).local();
|
|
8023
8044
|
}
|
|
8024
8045
|
};
|
|
8025
8046
|
|