oakscriptjs 0.25.0 → 0.25.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/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/script/index.d.ts +2 -0
- package/dist/cjs/script/index.d.ts.map +1 -1
- package/dist/cjs/script/index.js.map +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/script/index.d.ts +2 -0
- package/dist/esm/script/index.d.ts.map +1 -1
- package/dist/esm/script/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/script/index.ts +2 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -232,7 +232,7 @@ export type { LightweightSeriesDefinitions } from './runtime/adapters/Lightweigh
|
|
|
232
232
|
export { SimpleInputAdapter } from './runtime/adapters/SimpleInputAdapter.js';
|
|
233
233
|
|
|
234
234
|
// Version
|
|
235
|
-
export const VERSION = '0.25.
|
|
235
|
+
export const VERSION = '0.25.1';
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
238
|
* Library information
|
package/src/script/index.ts
CHANGED
|
@@ -4696,12 +4696,14 @@ export const syminfo: SyminfoNamespace = {
|
|
|
4696
4696
|
/** A calendar function: `(time, timezone?)` on a UNIX time or on a Series of times. */
|
|
4697
4697
|
interface CalendarFunction {
|
|
4698
4698
|
/**
|
|
4699
|
+
* The calendar field (year, month, day, hour...) of a time.
|
|
4699
4700
|
* @param time - A time in UNIX milliseconds.
|
|
4700
4701
|
* @param timezone - Time zone to read the time in: "America/New_York", "UTC+2"... Default: the exchange's.
|
|
4701
4702
|
* @returns The calendar field of that time.
|
|
4702
4703
|
*/
|
|
4703
4704
|
(time: number, timezone?: string): number;
|
|
4704
4705
|
/**
|
|
4706
|
+
* The calendar field (year, month, day, hour...) of each time of a Series, e.g. `year(time)`.
|
|
4705
4707
|
* @param time - A Series of times in UNIX milliseconds, e.g. `time`.
|
|
4706
4708
|
* @param timezone - Time zone to read the times in: "America/New_York", "UTC+2"... Default: the exchange's.
|
|
4707
4709
|
* @returns Series of the calendar field of each time.
|