ssjs-data 0.3.5 → 0.4.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/README.md CHANGED
@@ -88,6 +88,7 @@ import {
88
88
  TRIGGERED_SEND_TRACKING_CLICKS_METHODS,
89
89
  TRIGGERED_SEND_TRACKING_TOTAL_BY_INTERVAL_METHODS,
90
90
  // DateTime / ErrorUtil
91
+ DATE_TIME_METHODS,
91
92
  DATE_TIME_TIMEZONE_METHODS,
92
93
  ERROR_UTIL_METHODS,
93
94
  // Script.Util
@@ -299,6 +300,19 @@ if (attributeMethodNames.has('getvalue')) { /* ... */ }
299
300
  const m = attributeMethodLookup.get('getvalue');
300
301
  ```
301
302
 
303
+ ### `DATE_TIME_METHODS`
304
+
305
+ `DateTime` namespace methods for date conversion between local and system (UTC) time. These require `Platform.Load("core", "1")`:
306
+
307
+ ```js
308
+ import { DATE_TIME_METHODS } from 'ssjs-data';
309
+
310
+ for (const method of DATE_TIME_METHODS) {
311
+ console.log(method.name); // e.g. 'SystemDateToLocalDate', 'LocalDateToSystemDate'
312
+ console.log(method.syntax); // e.g. 'DateTime.SystemDateToLocalDate(dateString)'
313
+ }
314
+ ```
315
+
302
316
  ### `DATE_TIME_TIMEZONE_METHODS`
303
317
 
304
318
  Methods on the `DateTime.TimeZone` namespace (requires `Platform.Load("core", "1.1.5")`):