mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
13 lines
206 B
JavaScript
13 lines
206 B
JavaScript
|
jdk.imports['java.time.Instant'].load = async () => {
|
||
|
class Instant {}
|
||
|
|
||
|
Instant.now = () => {
|
||
|
return {
|
||
|
toEpochMilli: () => {
|
||
|
return Date.now();
|
||
|
}
|
||
|
};
|
||
|
};
|
||
|
jdk.java.time.Instant = Instant;
|
||
|
};
|