ect-date-formatter 1.19.0 → 1.19.7
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/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable
|
|
3
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
4
3
|
|
|
5
4
|
class EctDateFormatterService {
|
|
6
5
|
getISO8601DateFormat(date) {
|
|
@@ -311,54 +310,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
|
|
|
311
310
|
}]
|
|
312
311
|
}] });
|
|
313
312
|
|
|
314
|
-
class EctDateFormatterModule {
|
|
315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: EctDateFormatterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
316
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: EctDateFormatterModule, imports: [HttpClientModule] }); }
|
|
317
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: EctDateFormatterModule, providers: [
|
|
318
|
-
EctDateFormatterService,
|
|
319
|
-
{ provide: LOCALE_ID, useValue: 'en-GB' }
|
|
320
|
-
], imports: [HttpClientModule] }); }
|
|
321
|
-
}
|
|
322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: EctDateFormatterModule, decorators: [{
|
|
323
|
-
type: NgModule,
|
|
324
|
-
args: [{
|
|
325
|
-
declarations: [],
|
|
326
|
-
imports: [
|
|
327
|
-
HttpClientModule
|
|
328
|
-
],
|
|
329
|
-
exports: [],
|
|
330
|
-
providers: [
|
|
331
|
-
EctDateFormatterService,
|
|
332
|
-
{ provide: LOCALE_ID, useValue: 'en-GB' }
|
|
333
|
-
]
|
|
334
|
-
}]
|
|
335
|
-
}] });
|
|
336
|
-
|
|
337
313
|
/*
|
|
338
|
-
Copyright (c)
|
|
339
|
-
|
|
340
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
341
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
342
|
-
in the Software without restriction, including without limitation the rights
|
|
343
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
344
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
345
|
-
furnished to do so, subject to the following conditions:
|
|
314
|
+
Copyright (c) 2025 Exodus Cloud Technology Solutions Ltd
|
|
346
315
|
|
|
347
|
-
The
|
|
348
|
-
|
|
316
|
+
The licence agreement can be found at:
|
|
317
|
+
https://angular-grid.net/assets/licence/licence_agreement.txt
|
|
349
318
|
|
|
350
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
351
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
352
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
353
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
354
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
355
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
356
|
-
SOFTWARE.
|
|
357
319
|
*/
|
|
358
320
|
|
|
359
321
|
/**
|
|
360
322
|
* Generated bundle index. Do not edit.
|
|
361
323
|
*/
|
|
362
324
|
|
|
363
|
-
export {
|
|
325
|
+
export { EctDateFormatterService };
|
|
364
326
|
//# sourceMappingURL=ect-date-formatter.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ect-date-formatter.mjs","sources":["../../../projects/ect-date-formatter/src/lib/ect-date-formatter.service.ts","../../../projects/ect-date-formatter/src/lib/ect-date-formatter.module.ts","../../../projects/ect-date-formatter/src/public-api.ts","../../../projects/ect-date-formatter/src/ect-date-formatter.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\nexport interface IDateTimeFormatSections {\r\n parts: string[];\r\n divider: string;\r\n}\r\n\r\nexport interface IEctDateFormatterService {\r\n getISO8601DateFormat(date: Date): string;\r\n getISO8601TimeFormat(date: Date): string;\r\n getISO8601DateAndTimeFormat(date: Date): string;\r\n formatDate(date: Date, format: string): string;\r\n formatTime(date: Date, format: string): string;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class EctDateFormatterService implements IEctDateFormatterService {\r\n\r\n getISO8601DateFormat(date: Date): string {\r\n return this.get4DigitYear(date) + '-' + this.get2DigitMonth(date) + '-' + this.get2DigitDay(date);\r\n }\r\n\r\n getISO8601TimeFormat(date: Date): string {\r\n return this.get2Digit24Hours(date) + ':' + this.get2DigitMinutes(date) + ':' + this.get2DigitSeconds(date);\r\n }\r\n\r\n getISO8601DateAndTimeFormat(date: Date): string {\r\n return this.getISO8601DateFormat(date) + 'T' + this.getISO8601TimeFormat(date);\r\n }\r\n\r\n private getFormatPartsByDivider(input: string): IDateTimeFormatSections {\r\n if (input.indexOf(' ') > 0) {\r\n return {\r\n parts: input.split(' '),\r\n divider: ' '\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('/') > 0) {\r\n return {\r\n parts: input.split('/'),\r\n divider: '/'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf(':') > 0) {\r\n return {\r\n parts: input.split(':'),\r\n divider: ':'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf(';') > 0) {\r\n return {\r\n parts: input.split(';'),\r\n divider: ';'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('.') > 0) {\r\n return {\r\n parts: input.split('.'),\r\n divider: '.'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf(',') > 0) {\r\n return {\r\n parts: input.split(','),\r\n divider: ','\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('-') > 0) {\r\n return {\r\n parts: input.split('-'),\r\n divider: '-'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('_') > 0) {\r\n return {\r\n parts: input.split('_'),\r\n divider: '_'\r\n } as IDateTimeFormatSections;\r\n }\r\n\r\n return { parts: [], divider: ''} as IDateTimeFormatSections;\r\n }\r\n\r\n\r\n /*\r\n Date Formatting Rules\r\n\r\n yy/YY – two-digit year, e.g. 21\r\n yyyy/YYYY – four-digit year, e.g. 2021\r\n m/M – one-digit month for months below 10, e.g. 3\r\n mm/MM – two-digit month, e.g. 03\r\n mmm/MMM – three-letter abbreviation for month, e.g. Mar\r\n mmmm/MMMM – month spelled out in full, e.g. March\r\n d/D – one-digit day of the month for days below 10, e.g. 2\r\n dd/DD – two-digit day of the month, e.g. 02\r\n ddd/DDD – three-letter abbreviation for day of the week, e.g. Fri\r\n dddd/DDDD – day of the week spelled out in full, e.g. Friday\r\n\r\n */\r\n formatDate(date: Date, format: string): string {\r\n const formatPartsAndDivider = this.getFormatPartsByDivider(format);\r\n let dateValue = '';\r\n formatPartsAndDivider.parts.forEach(part => {\r\n if (dateValue !== '')\r\n dateValue += formatPartsAndDivider.divider;\r\n switch(part) {\r\n case 'yy':\r\n case 'YY':\r\n dateValue += this.get2DigitYear(date);\r\n break;\r\n case 'yyyy':\r\n case 'YYYY':\r\n dateValue += this.get4DigitYear(date);\r\n break;\r\n case 'm':\r\n case 'M':\r\n dateValue += this.get1DigitMonth(date);\r\n break;\r\n case 'mm':\r\n case 'MM':\r\n dateValue += this.get2DigitMonth(date);\r\n break;\r\n case 'mmm':\r\n case 'MMM':\r\n dateValue += this.get3DigitMonth(date);\r\n break;\r\n case 'mmmm':\r\n case 'MMMM':\r\n dateValue += this.get4DigitMonth(date);\r\n break;\r\n case 'd':\r\n case 'D':\r\n dateValue += this.get1DigitDay(date);\r\n break;\r\n case 'dd':\r\n case 'DD':\r\n dateValue += this.get2DigitDay(date);\r\n break;\r\n case 'ddd':\r\n case 'DDD':\r\n dateValue += this.get3DigitDay(date);\r\n break;\r\n case 'dddd':\r\n case 'DDDD':\r\n dateValue += this.get4DigitDay(date);\r\n break;\r\n }\r\n });\r\n return dateValue;\r\n }\r\n\r\n /*\r\n Time Formatting Rules\r\n\r\n h - hour to 1 digit on 12 hour clock - without leading 0\r\n hh - hour to 2 digits on 12 hour clock - with leading 0\r\n H - hour to 1 digit on 24 hour clock - without leading 0\r\n HH - hour to 2 digits on 24 hour clock - with leading 0\r\n m - minute to 1 digit - without leading 0\r\n mm/mi/MI - minute to 2 digits - with leading 0\r\n s/S - second to 1 digit - without leading 0\r\n ss/SS - second to 2 digits - with leading 0\r\n f/F - tenth of a second e.g. 2009-06-15T13:45:30.6170000 -> 6\r\n ff/FF - hundredths of a second e.g. 2009-06-15T13:45:30.6170000 -> 61\r\n fff/FFF - milliseconds e.g. 6/15/2009 13:45:30.617 -> 617\r\n ffff/FFFF - ten thousandths of a second e.g. 2009-06-15T13:45:30.6175000 -> 6175\r\n fffff/FFFFF - hundred thousandths of a second e.g. 2009-06-15T13:45:30.6175400 -> 61754\r\n ffffff/FFFFFF - millionths of a second e.g. 2009-06-15T13:45:30.6175420 -> 617542\r\n t/T - first character of AM/PM\r\n tt/TT - both characters of AM/PM\r\n\r\n */\r\n formatTime(date: Date, format: string): string {\r\n const formatPartsAndDivider = this.getFormatPartsByDivider(format);\r\n let timeValue = '';\r\n formatPartsAndDivider.parts.forEach(part => {\r\n if (timeValue !== '')\r\n timeValue += formatPartsAndDivider.divider;\r\n switch(part) {\r\n case 'h':\r\n timeValue += this.get1Digit12Hours(date);\r\n break;\r\n case 'hh':\r\n timeValue += this.get2Digit12Hours(date);\r\n break;\r\n case 'H':\r\n timeValue += this.get1Digit24Hours(date);\r\n break;\r\n case 'HH':\r\n timeValue += this.get2Digit24Hours(date);\r\n break;\r\n case 'm':\r\n timeValue += this.get1DigitMinutes(date);\r\n break;\r\n case 'mi':\r\n case 'mm':\r\n case 'MI':\r\n timeValue += this.get2DigitMinutes(date);\r\n break;\r\n case 's':\r\n case 'S':\r\n timeValue += this.get1DigitSeconds(date);\r\n break;\r\n case 'ss':\r\n case 'SS':\r\n timeValue += this.get2DigitSeconds(date);\r\n break;\r\n case 't':\r\n case 'T':\r\n timeValue += this.get1DigitAmPm(date);\r\n break;\r\n case 'tt':\r\n case 'TT':\r\n timeValue += this.get2DigitAmPm(date);\r\n break;\r\n case 'f':\r\n case 'F':\r\n timeValue += this.getXDigitMillisecond(date, 'f');\r\n break;\r\n case 'ff':\r\n case 'FF':\r\n timeValue += this.getXDigitMillisecond(date, 'fff');\r\n break;\r\n case 'fff':\r\n case 'FFF':\r\n timeValue += this.getXDigitMillisecond(date, 'fff');\r\n break;\r\n case 'ffff':\r\n case 'FFFF':\r\n timeValue += this.getXDigitMillisecond(date, 'ffff');\r\n break;\r\n case 'fffff':\r\n case 'FFFFF':\r\n timeValue += this.getXDigitMillisecond(date, 'fffff');\r\n break;\r\n case 'ffffff':\r\n case 'FFFFFF':\r\n timeValue += this.getXDigitMillisecond(date, 'ffffff');\r\n break;\r\n }\r\n });\r\n return timeValue;\r\n }\r\n\r\n private get1DigitDay(date: Date): string {\r\n const day = this.convertToDateIfRequired(date).getDate();\r\n return '' + day;\r\n }\r\n\r\n private get2DigitDay(date: Date): string {\r\n const day = this.convertToDateIfRequired(date).getDate();\r\n return this.padDateElement(day);\r\n }\r\n\r\n private get3DigitDay(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { weekday: 'short' });\r\n }\r\n\r\n private get4DigitDay(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { weekday: 'long' });\r\n }\r\n\r\n private get1DigitMonth(date: Date): string {\r\n const month = this.convertToDateIfRequired(date).getMonth() + 1;\r\n return '' + month;\r\n }\r\n\r\n private get2DigitMonth(date: Date): string {\r\n const month = this.convertToDateIfRequired(date).getMonth() + 1;\r\n return this.padDateElement(month);\r\n }\r\n\r\n private get3DigitMonth(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { month: 'long' }).substring(0,3);\r\n }\r\n\r\n private get4DigitMonth(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { month: 'long' });\r\n }\r\n\r\n private get2DigitYear(date: Date): string {\r\n const fullYear = '' + this.convertToDateIfRequired(date).getFullYear();\r\n return fullYear[2];\r\n }\r\n\r\n private get4DigitYear(date: Date): string {\r\n return this.convertToDateIfRequired(date).getFullYear().toString();\r\n }\r\n\r\n private get1Digit12Hours(date: Date): string {\r\n return this.convertToDateIfRequired(date).getHours().toString();\r\n }\r\n\r\n private get2Digit12Hours(date: Date): string {\r\n const hours = this.convertToDateIfRequired(date).getHours();\r\n return this.padDateElement(hours);\r\n }\r\n\r\n private get1Digit24Hours(date: Date): string {\r\n return this.convertToDateIfRequired(date).getHours().toString();\r\n }\r\n\r\n private get2Digit24Hours(date: Date): string {\r\n const hours = this.convertToDateIfRequired(date).getHours();\r\n return this.padDateElement(hours);\r\n }\r\n\r\n private get1DigitMinutes(date: Date): string {\r\n return this.convertToDateIfRequired(date).getMinutes().toString();\r\n }\r\n\r\n private get2DigitMinutes(date: Date): string {\r\n const minutes = this.convertToDateIfRequired(date).getMinutes();\r\n return this.padDateElement(minutes);\r\n }\r\n\r\n private get1DigitSeconds(date: Date): string {\r\n return this.convertToDateIfRequired(date).getSeconds().toString();\r\n }\r\n\r\n private get2DigitSeconds(date: Date): string {\r\n const seconds = this.convertToDateIfRequired(date).getSeconds();\r\n return this.padDateElement(seconds);\r\n }\r\n\r\n private get1DigitAmPm(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleDateString('t');\r\n }\r\n\r\n private get2DigitAmPm(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleDateString('tt');\r\n }\r\n\r\n private getXDigitMillisecond(date: Date, format): string {\r\n return this.convertToDateIfRequired(date).toLocaleDateString(format);\r\n }\r\n\r\n private padDateElement(value: number): string {\r\n return (value < 10) ? '0' + value : '' + value;\r\n }\r\n\r\n private convertToDateIfRequired(input: Date | string): Date {\r\n if (typeof(input) === 'string')\r\n return new Date(input);\r\n return input;\r\n }\r\n\r\n}\r\n","import { EctDateFormatterService } from './ect-date-formatter.service';\r\nimport { HttpClientModule, HttpClient } from '@angular/common/http';\r\nimport { NgModule, LOCALE_ID } from '@angular/core';\r\n\r\n@NgModule({\r\n declarations: [ ],\r\n imports: [\r\n HttpClientModule\r\n ],\r\n exports: [ ],\r\n providers: [\r\n EctDateFormatterService,\r\n { provide: LOCALE_ID, useValue: 'en-GB' }\r\n ]\r\n})\r\nexport class EctDateFormatterModule { }\r\n","/*\r\n Copyright (c) 2023 Exodus Cloud Technology Solutions Ltd\r\n\r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n\r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n\r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.\r\n*/\r\n\r\nexport * from './lib/ect-date-formatter.service';\r\nexport * from './lib/ect-date-formatter.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAkBa,uBAAuB,CAAA;AAElC,IAAA,oBAAoB,CAAC,IAAU,EAAA;QAC7B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;;AAGnG,IAAA,oBAAoB,CAAC,IAAU,EAAA;QAC7B,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;;AAG5G,IAAA,2BAA2B,CAAC,IAAU,EAAA;AACpC,QAAA,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;;AAGxE,IAAA,uBAAuB,CAAC,KAAa,EAAA;QAC3C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAC1B,OAAO;AACL,gBAAA,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AACvB,gBAAA,OAAO,EAAE;aACiB;;QAE9B,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAC1B,OAAO;AACL,gBAAA,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AACvB,gBAAA,OAAO,EAAE;aACiB;;QAE9B,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAC1B,OAAO;AACL,gBAAA,KAAK,EAA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date-formatter/src/lib/ect-date-formatter.service.ts","../../../projects/ect-date-formatter/src/public-api.ts","../../../projects/ect-date-formatter/src/ect-date-formatter.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\nexport interface IDateTimeFormatSections {\r\n parts: string[];\r\n divider: string;\r\n}\r\n\r\nexport interface IEctDateFormatterService {\r\n getISO8601DateFormat(date: Date): string;\r\n getISO8601TimeFormat(date: Date): string;\r\n getISO8601DateAndTimeFormat(date: Date): string;\r\n formatDate(date: Date, format: string): string;\r\n formatTime(date: Date, format: string): string;\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class EctDateFormatterService implements IEctDateFormatterService {\r\n\r\n getISO8601DateFormat(date: Date): string {\r\n return this.get4DigitYear(date) + '-' + this.get2DigitMonth(date) + '-' + this.get2DigitDay(date);\r\n }\r\n\r\n getISO8601TimeFormat(date: Date): string {\r\n return this.get2Digit24Hours(date) + ':' + this.get2DigitMinutes(date) + ':' + this.get2DigitSeconds(date);\r\n }\r\n\r\n getISO8601DateAndTimeFormat(date: Date): string {\r\n return this.getISO8601DateFormat(date) + 'T' + this.getISO8601TimeFormat(date);\r\n }\r\n\r\n private getFormatPartsByDivider(input: string): IDateTimeFormatSections {\r\n if (input.indexOf(' ') > 0) {\r\n return {\r\n parts: input.split(' '),\r\n divider: ' '\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('/') > 0) {\r\n return {\r\n parts: input.split('/'),\r\n divider: '/'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf(':') > 0) {\r\n return {\r\n parts: input.split(':'),\r\n divider: ':'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf(';') > 0) {\r\n return {\r\n parts: input.split(';'),\r\n divider: ';'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('.') > 0) {\r\n return {\r\n parts: input.split('.'),\r\n divider: '.'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf(',') > 0) {\r\n return {\r\n parts: input.split(','),\r\n divider: ','\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('-') > 0) {\r\n return {\r\n parts: input.split('-'),\r\n divider: '-'\r\n } as IDateTimeFormatSections;\r\n }\r\n if (input.indexOf('_') > 0) {\r\n return {\r\n parts: input.split('_'),\r\n divider: '_'\r\n } as IDateTimeFormatSections;\r\n }\r\n\r\n return { parts: [], divider: ''} as IDateTimeFormatSections;\r\n }\r\n\r\n\r\n /*\r\n Date Formatting Rules\r\n\r\n yy/YY – two-digit year, e.g. 21\r\n yyyy/YYYY – four-digit year, e.g. 2021\r\n m/M – one-digit month for months below 10, e.g. 3\r\n mm/MM – two-digit month, e.g. 03\r\n mmm/MMM – three-letter abbreviation for month, e.g. Mar\r\n mmmm/MMMM – month spelled out in full, e.g. March\r\n d/D – one-digit day of the month for days below 10, e.g. 2\r\n dd/DD – two-digit day of the month, e.g. 02\r\n ddd/DDD – three-letter abbreviation for day of the week, e.g. Fri\r\n dddd/DDDD – day of the week spelled out in full, e.g. Friday\r\n\r\n */\r\n formatDate(date: Date, format: string): string {\r\n const formatPartsAndDivider = this.getFormatPartsByDivider(format);\r\n let dateValue = '';\r\n formatPartsAndDivider.parts.forEach(part => {\r\n if (dateValue !== '')\r\n dateValue += formatPartsAndDivider.divider;\r\n switch(part) {\r\n case 'yy':\r\n case 'YY':\r\n dateValue += this.get2DigitYear(date);\r\n break;\r\n case 'yyyy':\r\n case 'YYYY':\r\n dateValue += this.get4DigitYear(date);\r\n break;\r\n case 'm':\r\n case 'M':\r\n dateValue += this.get1DigitMonth(date);\r\n break;\r\n case 'mm':\r\n case 'MM':\r\n dateValue += this.get2DigitMonth(date);\r\n break;\r\n case 'mmm':\r\n case 'MMM':\r\n dateValue += this.get3DigitMonth(date);\r\n break;\r\n case 'mmmm':\r\n case 'MMMM':\r\n dateValue += this.get4DigitMonth(date);\r\n break;\r\n case 'd':\r\n case 'D':\r\n dateValue += this.get1DigitDay(date);\r\n break;\r\n case 'dd':\r\n case 'DD':\r\n dateValue += this.get2DigitDay(date);\r\n break;\r\n case 'ddd':\r\n case 'DDD':\r\n dateValue += this.get3DigitDay(date);\r\n break;\r\n case 'dddd':\r\n case 'DDDD':\r\n dateValue += this.get4DigitDay(date);\r\n break;\r\n }\r\n });\r\n return dateValue;\r\n }\r\n\r\n /*\r\n Time Formatting Rules\r\n\r\n h - hour to 1 digit on 12 hour clock - without leading 0\r\n hh - hour to 2 digits on 12 hour clock - with leading 0\r\n H - hour to 1 digit on 24 hour clock - without leading 0\r\n HH - hour to 2 digits on 24 hour clock - with leading 0\r\n m - minute to 1 digit - without leading 0\r\n mm/mi/MI - minute to 2 digits - with leading 0\r\n s/S - second to 1 digit - without leading 0\r\n ss/SS - second to 2 digits - with leading 0\r\n f/F - tenth of a second e.g. 2009-06-15T13:45:30.6170000 -> 6\r\n ff/FF - hundredths of a second e.g. 2009-06-15T13:45:30.6170000 -> 61\r\n fff/FFF - milliseconds e.g. 6/15/2009 13:45:30.617 -> 617\r\n ffff/FFFF - ten thousandths of a second e.g. 2009-06-15T13:45:30.6175000 -> 6175\r\n fffff/FFFFF - hundred thousandths of a second e.g. 2009-06-15T13:45:30.6175400 -> 61754\r\n ffffff/FFFFFF - millionths of a second e.g. 2009-06-15T13:45:30.6175420 -> 617542\r\n t/T - first character of AM/PM\r\n tt/TT - both characters of AM/PM\r\n\r\n */\r\n formatTime(date: Date, format: string): string {\r\n const formatPartsAndDivider = this.getFormatPartsByDivider(format);\r\n let timeValue = '';\r\n formatPartsAndDivider.parts.forEach(part => {\r\n if (timeValue !== '')\r\n timeValue += formatPartsAndDivider.divider;\r\n switch(part) {\r\n case 'h':\r\n timeValue += this.get1Digit12Hours(date);\r\n break;\r\n case 'hh':\r\n timeValue += this.get2Digit12Hours(date);\r\n break;\r\n case 'H':\r\n timeValue += this.get1Digit24Hours(date);\r\n break;\r\n case 'HH':\r\n timeValue += this.get2Digit24Hours(date);\r\n break;\r\n case 'm':\r\n timeValue += this.get1DigitMinutes(date);\r\n break;\r\n case 'mi':\r\n case 'mm':\r\n case 'MI':\r\n timeValue += this.get2DigitMinutes(date);\r\n break;\r\n case 's':\r\n case 'S':\r\n timeValue += this.get1DigitSeconds(date);\r\n break;\r\n case 'ss':\r\n case 'SS':\r\n timeValue += this.get2DigitSeconds(date);\r\n break;\r\n case 't':\r\n case 'T':\r\n timeValue += this.get1DigitAmPm(date);\r\n break;\r\n case 'tt':\r\n case 'TT':\r\n timeValue += this.get2DigitAmPm(date);\r\n break;\r\n case 'f':\r\n case 'F':\r\n timeValue += this.getXDigitMillisecond(date, 'f');\r\n break;\r\n case 'ff':\r\n case 'FF':\r\n timeValue += this.getXDigitMillisecond(date, 'fff');\r\n break;\r\n case 'fff':\r\n case 'FFF':\r\n timeValue += this.getXDigitMillisecond(date, 'fff');\r\n break;\r\n case 'ffff':\r\n case 'FFFF':\r\n timeValue += this.getXDigitMillisecond(date, 'ffff');\r\n break;\r\n case 'fffff':\r\n case 'FFFFF':\r\n timeValue += this.getXDigitMillisecond(date, 'fffff');\r\n break;\r\n case 'ffffff':\r\n case 'FFFFFF':\r\n timeValue += this.getXDigitMillisecond(date, 'ffffff');\r\n break;\r\n }\r\n });\r\n return timeValue;\r\n }\r\n\r\n private get1DigitDay(date: Date): string {\r\n const day = this.convertToDateIfRequired(date).getDate();\r\n return '' + day;\r\n }\r\n\r\n private get2DigitDay(date: Date): string {\r\n const day = this.convertToDateIfRequired(date).getDate();\r\n return this.padDateElement(day);\r\n }\r\n\r\n private get3DigitDay(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { weekday: 'short' });\r\n }\r\n\r\n private get4DigitDay(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { weekday: 'long' });\r\n }\r\n\r\n private get1DigitMonth(date: Date): string {\r\n const month = this.convertToDateIfRequired(date).getMonth() + 1;\r\n return '' + month;\r\n }\r\n\r\n private get2DigitMonth(date: Date): string {\r\n const month = this.convertToDateIfRequired(date).getMonth() + 1;\r\n return this.padDateElement(month);\r\n }\r\n\r\n private get3DigitMonth(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { month: 'long' }).substring(0,3);\r\n }\r\n\r\n private get4DigitMonth(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleString('default', { month: 'long' });\r\n }\r\n\r\n private get2DigitYear(date: Date): string {\r\n const fullYear = '' + this.convertToDateIfRequired(date).getFullYear();\r\n return fullYear[2];\r\n }\r\n\r\n private get4DigitYear(date: Date): string {\r\n return this.convertToDateIfRequired(date).getFullYear().toString();\r\n }\r\n\r\n private get1Digit12Hours(date: Date): string {\r\n return this.convertToDateIfRequired(date).getHours().toString();\r\n }\r\n\r\n private get2Digit12Hours(date: Date): string {\r\n const hours = this.convertToDateIfRequired(date).getHours();\r\n return this.padDateElement(hours);\r\n }\r\n\r\n private get1Digit24Hours(date: Date): string {\r\n return this.convertToDateIfRequired(date).getHours().toString();\r\n }\r\n\r\n private get2Digit24Hours(date: Date): string {\r\n const hours = this.convertToDateIfRequired(date).getHours();\r\n return this.padDateElement(hours);\r\n }\r\n\r\n private get1DigitMinutes(date: Date): string {\r\n return this.convertToDateIfRequired(date).getMinutes().toString();\r\n }\r\n\r\n private get2DigitMinutes(date: Date): string {\r\n const minutes = this.convertToDateIfRequired(date).getMinutes();\r\n return this.padDateElement(minutes);\r\n }\r\n\r\n private get1DigitSeconds(date: Date): string {\r\n return this.convertToDateIfRequired(date).getSeconds().toString();\r\n }\r\n\r\n private get2DigitSeconds(date: Date): string {\r\n const seconds = this.convertToDateIfRequired(date).getSeconds();\r\n return this.padDateElement(seconds);\r\n }\r\n\r\n private get1DigitAmPm(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleDateString('t');\r\n }\r\n\r\n private get2DigitAmPm(date: Date): string {\r\n return this.convertToDateIfRequired(date).toLocaleDateString('tt');\r\n }\r\n\r\n private getXDigitMillisecond(date: Date, format): string {\r\n return this.convertToDateIfRequired(date).toLocaleDateString(format);\r\n }\r\n\r\n private padDateElement(value: number): string {\r\n return (value < 10) ? '0' + value : '' + value;\r\n }\r\n\r\n private convertToDateIfRequired(input: Date | string): Date {\r\n if (typeof(input) === 'string')\r\n return new Date(input);\r\n return input;\r\n }\r\n\r\n}\r\n","/*\r\n Copyright (c) 2025 Exodus Cloud Technology Solutions Ltd\r\n\r\n The licence agreement can be found at:\r\n https://angular-grid.net/assets/licence/licence_agreement.txt\r\n\r\n*/\r\n\r\nexport * from './lib/ect-date-formatter.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAkBa,uBAAuB,CAAA;AAElC,IAAA,oBAAoB,CAAC,IAAU,EAAA;QAC7B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;;AAGnG,IAAA,oBAAoB,CAAC,IAAU,EAAA;QAC7B,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;;AAG5G,IAAA,2BAA2B,CAAC,IAAU,EAAA;AACpC,QAAA,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;;AAGxE,IAAA,uBAAuB,CAAC,KAAa,EAAA;QAC3C,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAC1B,OAAO;AACL,gBAAA,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;AACvB,gBAAA,OAAO,EAAE;aACiB;;QAE9B,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,C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AAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA,CAAA;;2FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACjBD;;;;;;AAME;;ACNF;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ect-date-formatter",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.7",
|
|
4
4
|
"description": "An Ivy compiled package for formatting dates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"type": "git"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@angular/common": "^19.
|
|
21
|
-
"@angular/core": "^19.
|
|
20
|
+
"@angular/common": "^19.2.0",
|
|
21
|
+
"@angular/core": "^19.2.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"tslib": "^2.5.0"
|
package/public-api.d.ts
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common/http";
|
|
3
|
-
export declare class EctDateFormatterModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EctDateFormatterModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EctDateFormatterModule, never, [typeof i1.HttpClientModule], never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<EctDateFormatterModule>;
|
|
7
|
-
}
|