mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
28
node_modules/prompts/dist/dateparts/milliseconds.js
generated
vendored
Normal file
28
node_modules/prompts/dist/dateparts/milliseconds.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
'use strict';
|
||||
|
||||
const DatePart = require('./datepart');
|
||||
|
||||
class Milliseconds extends DatePart {
|
||||
constructor(opts = {}) {
|
||||
super(opts);
|
||||
}
|
||||
|
||||
up() {
|
||||
this.date.setMilliseconds(this.date.getMilliseconds() + 1);
|
||||
}
|
||||
|
||||
down() {
|
||||
this.date.setMilliseconds(this.date.getMilliseconds() - 1);
|
||||
}
|
||||
|
||||
setTo(val) {
|
||||
this.date.setMilliseconds(parseInt(val.substr(-this.token.length)));
|
||||
}
|
||||
|
||||
toString() {
|
||||
return String(this.date.getMilliseconds()).padStart(4, '0').substr(0, this.token.length);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Milliseconds;
|
Loading…
Add table
Add a link
Reference in a new issue