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.
@@ -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" });