@indra.ai/deva 1.33.0 → 1.33.1

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/index.js CHANGED
@@ -2360,7 +2360,7 @@ class Deva {
2360
2360
  ***************/
2361
2361
  uid(guid=false) {
2362
2362
  const time = Date.now(); // set time to local constant
2363
- const date = this.lib.formatDate(time, 'long', true); // set date to local constant
2363
+ const date = this.lib.formatDate(time, 'iso', true); // set date to local constant
2364
2364
  const license = this._info.VLA ? this._info.VLA.uid : false;
2365
2365
  const client = this.client(); // get the client
2366
2366
  const agent = this.agent(); // get the agent
package/lib/index.js CHANGED
@@ -139,7 +139,9 @@ class LIB {
139
139
  if (!d) d = Date.now();
140
140
  d = new Date(d);
141
141
 
142
- if (format === 'milli') return d.getTime();
142
+ if (format === 'milli') return d.getTime(); // return millisecond time
143
+ if (format === 'iso') return d.toISOString(); // return iso date
144
+ if (format === 'utc') return d.toUTCString(); // return utc date
143
145
  // pre-set date formats for returning user dates.
144
146
  const formats = {
145
147
  long: { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "71393644869653248038",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.33.0",
4
+ "version": "1.33.1",
5
5
  "description": "Deva Core a Vedic-inspired Event Based Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
6
6
  "main": "index.js",
7
7
  "license": "VLA:71393644869653248038 LICENSE.md",