Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assemblyscript-temporal

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemblyscript-temporal - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

1

assembly/index.ts

@@ -9,1 +9,2 @@ import "./env";

export * from "./now";
export * from "./instant";
import { PlainDateTime } from "./plaindatetime";
import { PlainDate } from "./plaindate";
import { PlainTime } from "./plaintime";
import { Instant } from "./instant";

@@ -28,2 +30,18 @@ export class now {

}
static plainTimeISO(): PlainTime {
const epochMillis = Date.now();
const date = new Date(epochMillis);
return new PlainTime(
date.getUTCHours(),
date.getUTCMinutes(),
date.getUTCSeconds(),
date.getUTCMilliseconds()
);
}
static instant(): Instant {
const epochMillis = Date.now();
return Instant.fromEpochMilliseconds(epochMillis);
}
}

@@ -340,1 +340,15 @@ ## Development and roadmap

- [ ] rounding and smallest unit behaviour
#### now
Methods
- [ ] zonedDateTimeISO
- [ ] zonedDateTime
- [x] instant
- [ ] timeZone
- [x] plainDateTimeISO
- [ ] plainDateTime
- [x] plainDateISO
- [ ] plainDate
- [x] plainTimeISO

2

package.json
{
"name": "assemblyscript-temporal",
"version": "2.1.1",
"version": "2.2.0",
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc