mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-09 02:14:28 +00:00
v7
This commit is contained in:
parent
033d472283
commit
49df04613e
6774 changed files with 1602535 additions and 1 deletions
29
node_modules/prompts/dist/dateparts/minutes.js
generated
vendored
Normal file
29
node_modules/prompts/dist/dateparts/minutes.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
'use strict';
|
||||
|
||||
const DatePart = require('./datepart');
|
||||
|
||||
class Minutes extends DatePart {
|
||||
constructor(opts = {}) {
|
||||
super(opts);
|
||||
}
|
||||
|
||||
up() {
|
||||
this.date.setMinutes(this.date.getMinutes() + 1);
|
||||
}
|
||||
|
||||
down() {
|
||||
this.date.setMinutes(this.date.getMinutes() - 1);
|
||||
}
|
||||
|
||||
setTo(val) {
|
||||
this.date.setMinutes(parseInt(val.substr(-2)));
|
||||
}
|
||||
|
||||
toString() {
|
||||
let m = this.date.getMinutes();
|
||||
return this.token.length > 1 ? String(m).padStart(2, '0') : m;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Minutes;
|
Loading…
Add table
Add a link
Reference in a new issue