node-opcua-date-time
Advanced tools
Comparing version 2.125.0 to 2.128.0
@@ -6,3 +6,12 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isMinDate = exports.minOPCUADate = exports.minDate = exports.coerceClock = exports.getCurrentClock = exports.uninstallPeriodicClockAdjustment = exports.installPeriodicClockAdjustment = exports.periodicClockAdjustment = exports.getCurrentClockWithJavascriptDate = exports.bn_hundredNanoSecondFrom1601ToDate = exports.bn_dateToHundredNanoSecondFrom1601Excess = exports.bn_dateToHundredNanoSecondFrom1601 = exports.offsetFactor1601 = void 0; | ||
exports.minOPCUADate = exports.minDate = exports.periodicClockAdjustment = exports.offsetFactor1601 = void 0; | ||
exports.bn_dateToHundredNanoSecondFrom1601 = bn_dateToHundredNanoSecondFrom1601; | ||
exports.bn_dateToHundredNanoSecondFrom1601Excess = bn_dateToHundredNanoSecondFrom1601Excess; | ||
exports.bn_hundredNanoSecondFrom1601ToDate = bn_hundredNanoSecondFrom1601ToDate; | ||
exports.getCurrentClockWithJavascriptDate = getCurrentClockWithJavascriptDate; | ||
exports.installPeriodicClockAdjustment = installPeriodicClockAdjustment; | ||
exports.uninstallPeriodicClockAdjustment = uninstallPeriodicClockAdjustment; | ||
exports.getCurrentClock = getCurrentClock; | ||
exports.coerceClock = coerceClock; | ||
exports.isMinDate = isMinDate; | ||
/** | ||
@@ -89,3 +98,2 @@ * @module node-opcua-date-time | ||
} | ||
exports.bn_dateToHundredNanoSecondFrom1601 = bn_dateToHundredNanoSecondFrom1601; | ||
function bn_dateToHundredNanoSecondFrom1601Excess(date, picoseconds) { | ||
@@ -95,3 +103,2 @@ // 100 nano seconds = 100 x 1000 picoseconds | ||
} | ||
exports.bn_dateToHundredNanoSecondFrom1601Excess = bn_dateToHundredNanoSecondFrom1601Excess; | ||
function bn_hundredNanoSecondFrom1601ToDate(high, low, picoseconds = 0, _value = null) { | ||
@@ -112,3 +119,2 @@ (0, node_opcua_assert_1.assert)(low !== undefined); | ||
} | ||
exports.bn_hundredNanoSecondFrom1601ToDate = bn_hundredNanoSecondFrom1601ToDate; | ||
let lastNowDate; | ||
@@ -135,3 +141,2 @@ let lastPicoseconds = 0; | ||
} | ||
exports.getCurrentClockWithJavascriptDate = getCurrentClockWithJavascriptDate; | ||
let origin = (0, node_opcua_utils_1.hrtime)(); | ||
@@ -161,3 +166,2 @@ let refTime = Date.now(); | ||
} | ||
exports.installPeriodicClockAdjustment = installPeriodicClockAdjustment; | ||
function uninstallPeriodicClockAdjustment() { | ||
@@ -170,3 +174,2 @@ exports.periodicClockAdjustment.timerInstallationCount--; | ||
} | ||
exports.uninstallPeriodicClockAdjustment = uninstallPeriodicClockAdjustment; | ||
const gClock = { | ||
@@ -195,3 +198,2 @@ tick: [0, 0], | ||
} | ||
exports.getCurrentClock = getCurrentClock; | ||
function coerceClock(timestamp, picoseconds = 0) { | ||
@@ -205,3 +207,2 @@ if (timestamp) { | ||
} | ||
exports.coerceClock = coerceClock; | ||
exports.minDate = new Date(Date.UTC(1601, 0, 1, 0, 0, 0)); | ||
@@ -212,3 +213,2 @@ exports.minOPCUADate = exports.minDate; | ||
} | ||
exports.isMinDate = isMinDate; | ||
//# sourceMappingURL=date_time.js.map |
import { BinaryStream, OutputBinaryStream } from "node-opcua-binary-stream"; | ||
import { DateWithPicoseconds } from "./date_time"; | ||
export declare function isValidDateTime(value: any): boolean; | ||
export declare function isValidDateTime(value: any): value is Date; | ||
export declare function randomDateTime(): Date; | ||
@@ -5,0 +5,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.coerceDateTime = exports.decodeHighAccuracyDateTime = exports.decodeDateTime = exports.encodeDateTime = exports.encodeHighAccuracyDateTime = exports.randomDateTime = exports.isValidDateTime = void 0; | ||
exports.decodeHighAccuracyDateTime = void 0; | ||
exports.isValidDateTime = isValidDateTime; | ||
exports.randomDateTime = randomDateTime; | ||
exports.encodeHighAccuracyDateTime = encodeHighAccuracyDateTime; | ||
exports.encodeDateTime = encodeDateTime; | ||
exports.decodeDateTime = decodeDateTime; | ||
exports.coerceDateTime = coerceDateTime; | ||
const date_time_1 = require("./date_time"); | ||
@@ -9,3 +15,2 @@ // Date(year, month [, day, hours, minutes, seconds, ms]) | ||
} | ||
exports.isValidDateTime = isValidDateTime; | ||
/** | ||
@@ -27,3 +32,2 @@ * return a random integer value in the range of min inclusive and max exclusive | ||
} | ||
exports.randomDateTime = randomDateTime; | ||
/** | ||
@@ -47,7 +51,5 @@ * | ||
} | ||
exports.encodeHighAccuracyDateTime = encodeHighAccuracyDateTime; | ||
function encodeDateTime(date, stream) { | ||
encodeHighAccuracyDateTime(date, 0, stream); | ||
} | ||
exports.encodeDateTime = encodeDateTime; | ||
/** | ||
@@ -63,3 +65,2 @@ * | ||
} | ||
exports.decodeDateTime = decodeDateTime; | ||
exports.decodeHighAccuracyDateTime = decodeDateTime; | ||
@@ -75,3 +76,2 @@ function coerceDateTime(value) { | ||
} | ||
exports.coerceDateTime = coerceDateTime; | ||
//# sourceMappingURL=encode_decode.js.map |
@@ -5,3 +5,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "2.125.0", | ||
"version": "2.128.0", | ||
"description": "pure nodejs OPCUA SDK - module date-time", | ||
@@ -16,11 +16,9 @@ "scripts": { | ||
"node-opcua-assert": "2.120.0", | ||
"node-opcua-binary-stream": "2.125.0", | ||
"node-opcua-utils": "2.125.0" | ||
"node-opcua-binary-stream": "2.128.0", | ||
"node-opcua-utils": "2.128.0" | ||
}, | ||
"devDependencies": { | ||
"bignumber.js": "^9.1.2", | ||
"node-opcua-benchmarker": "2.125.0", | ||
"node-opcua-debug": "2.125.0", | ||
"should": "^13.2.3", | ||
"sinon": "^18.0.0" | ||
"node-opcua-benchmarker": "2.128.0", | ||
"node-opcua-debug": "2.128.0" | ||
}, | ||
@@ -42,3 +40,3 @@ "author": "Etienne Rossignon", | ||
"homepage": "http://node-opcua.github.io/", | ||
"gitHead": "a0e0a2f1045e6e402dd4619c625c90008f0617ed", | ||
"gitHead": "67a73af6b831d8651a0e66ceb295f159cab4386b", | ||
"files": [ | ||
@@ -45,0 +43,0 @@ "dist", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3
37285
659
+ Addednode-opcua-binary-stream@2.128.0(transitive)
+ Addednode-opcua-buffer-utils@2.128.0(transitive)
+ Addednode-opcua-utils@2.128.0(transitive)
- Removednode-opcua-binary-stream@2.125.0(transitive)
- Removednode-opcua-buffer-utils@2.125.0(transitive)
- Removednode-opcua-utils@2.125.0(transitive)
Updatednode-opcua-utils@2.128.0