assemblyscript-temporal
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -8,3 +8,6 @@ import "./env"; | ||
export * from "./enums"; | ||
export { now } from "./now"; | ||
export { Now } from "./now"; | ||
export { Instant } from "./instant"; | ||
// @deprecated `now` is not a standard API use `Now` instead | ||
export { Now as now } from "./now"; |
@@ -6,3 +6,3 @@ import { PlainDateTime } from "./plaindatetime"; | ||
export class now { | ||
export class Now { | ||
static plainDateTimeISO(): PlainDateTime { | ||
@@ -9,0 +9,0 @@ const epochMillis = Date.now(); |
@@ -6,3 +6,3 @@ ## Development and roadmap | ||
1. Non-timezone aware classes, i.e. `PlainDate`, `PlainDateTime`, etc with a hard-coded Gregorian calendar. | ||
2. Ancillary classes, i.e. `Instant`, `Duration` and `now` | ||
2. Ancillary classes, i.e. `Instant`, `Duration` and `Now` | ||
3. Time-zone aware classes, `TimeZone`, `ZonedDateTime`, etc | ||
@@ -342,3 +342,3 @@ 4. Non gregorian calendar systems | ||
#### now | ||
#### Now | ||
@@ -345,0 +345,0 @@ Methods |
{ | ||
"name": "assemblyscript-temporal", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "An implementation of temporal within AssemblyScript, with an initial focus on non-timezone-aware classes and functionality.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -112,8 +112,8 @@ ## assemblyscript-temporal | ||
#### `now` | ||
#### `Now` | ||
The `now` object has several methods which give information about the current time and date. | ||
The `Now` object has several methods which give information about the current time and date. | ||
```javascript | ||
dateTime = now.plainDateTimeISO(); | ||
dateTime = Now.plainDateTimeISO(); | ||
dateTime.toString(); // 2021-04-01T12:05:47.357 | ||
@@ -127,1 +127,3 @@ ``` | ||
There is a [brief document that outlines implementation progress and priorities](./development.md). | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
502665
11722
128