biz9-logic 3.5.24 → 3.5.25

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +12 -0
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='3.7.4'
1
+ VERSION='3.7.5'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -366,7 +366,19 @@ class Stock {
366
366
  }
367
367
  };
368
368
  }
369
+ class DateTime {
370
+ static get_full_date_by_date_time = (date,time) => {
371
+ return moment(date+ " " + time, 'YYYY-MM-DD h:mm').format("dddd MMMM Do, YYYY");
372
+ }
373
+ static get_full_time_by_date_time = (date,time) => {
374
+ return moment(date+ " " + time, 'YYYY-MM-DD h:mm').format("h:mm a");
375
+ }
376
+ static get_full_date_time_by_date_time = (date,time) => {
377
+ return moment(date+ " " + time, 'YYYY-MM-DD h:mm').format("dddd MMMM Do, YYYY h:mm a");
378
+ }
379
+ };
369
380
  module.exports = {
381
+ DateTime,
370
382
  Stock,
371
383
  DataType,
372
384
  DataItem,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.5.24",
3
+ "version": "3.5.25",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"