tnx-shared 5.3.219 → 5.3.220
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/bundles/tnx-shared.umd.js +6 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/common.service.js +7 -1
- package/fesm2015/tnx-shared.js +6 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +1 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -4838,6 +4838,12 @@
|
|
|
4838
4838
|
var weekdays = ['Chủ nhật', 'Thứ hai', 'Thứ ba', 'Thứ tư', 'Thứ năm', 'Thứ sáu', 'Thứ bảy'];
|
|
4839
4839
|
return weekdays[date.getDay()];
|
|
4840
4840
|
};
|
|
4841
|
+
CommonService.prototype.getQuarterFromDate = function (date) {
|
|
4842
|
+
if (!date) {
|
|
4843
|
+
date = new Date();
|
|
4844
|
+
}
|
|
4845
|
+
return Math.floor((date.getMonth() + 3) / 3);
|
|
4846
|
+
};
|
|
4841
4847
|
return CommonService;
|
|
4842
4848
|
}());
|
|
4843
4849
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|