Duration!

This commit is contained in:
shenjack-5600u 2024-03-06 00:02:01 +08:00
parent 7c9e5587ba
commit 38fe867c65
Signed by: shenjack
GPG Key ID: FDF9864E11C7E79F

View File

@ -4988,8 +4988,8 @@
Duration: function b3(a) { Duration: function b3(a) {
this.a = a this.a = a
}, },
et: function et() { }, Duration_to_string_six_digits: function et() { },
eu: function eu() { }, Duration_to_string_two_digits: function eu() { },
Error: function n() { }, Error: function n() { },
cD: function cD(a) { cD: function cD(a) {
this.a = a this.a = a
@ -8201,16 +8201,16 @@
return C.a.gF(this.a) return C.a.gF(this.a)
}, },
j(a) { j(a) {
var s, r, q, p = new P.eu(), var s, r, q, p = new P.Duration_to_string_two_digits(),
o = this.a o = this.a
if (o < 0) return "-" + new P.Duration(0 - o).j(0) if (o < 0) return "-" + new P.Duration(0 - o).j(0)
s = p.$1(C.a.A(o, 6e7) % 60) s = p.$1(C.a.A(o, 6e7) % 60)
r = p.$1(C.a.A(o, 1e6) % 60) r = p.$1(C.a.A(o, 1e6) % 60)
q = new P.et().$1(o % 1e6) q = new P.Duration_to_string_six_digits().$1(o % 1e6)
return "" + C.a.A(o, 36e8) + ":" + H.d(s) + ":" + H.d(r) + "." + H.d(q) return "" + C.a.A(o, 36e8) + ":" + H.d(s) + ":" + H.d(r) + "." + H.d(q)
} }
} }
P.et.prototype = { P.Duration_to_string_six_digits.prototype = {
$1(a) { $1(a) {
if (a >= 1e5) return "" + a if (a >= 1e5) return "" + a
if (a >= 1e4) return "0" + a if (a >= 1e4) return "0" + a
@ -8221,7 +8221,7 @@
}, },
$S: 9 $S: 9
} }
P.eu.prototype = { P.Duration_to_string_two_digits.prototype = {
$1(a) { $1(a) {
if (a >= 10) return "" + a if (a >= 10) return "" + a
return "0" + a return "0" + a
@ -10732,7 +10732,7 @@
_inherit(P.bT, P.cg) _inherit(P.bT, P.cg)
_inherit_many(P.bT, [H.bm, W.M]) _inherit_many(P.bT, [H.bm, W.M])
_inherit(H.ap, H.bm) _inherit(H.ap, H.bm)
_inherit_many(H.aG, [H.cI, H.cJ, H.dy, H.hn, H.hp, P.fn, P.fm, P.h6, P.fA, P.fI, P.f8, P.fP, P.et, P.eu, W.ew, W.fv, W.eW, W.eV, W.fR, W.fS, W.fX, P.h9, P.ha, P.hf, P.hg, P.hh, P.hy, P.hz, O.eB, O.ez, G.eK, G.eR, G.eQ, G.eO, G.eN, G.eL, G.eP, G.eM]) _inherit_many(H.aG, [H.cI, H.cJ, H.dy, H.hn, H.hp, P.fn, P.fm, P.h6, P.fA, P.fI, P.f8, P.fP, P.Duration_to_string_six_digits, P.Duration_to_string_two_digits, W.ew, W.fv, W.eW, W.eV, W.fR, W.fS, W.fX, P.h9, P.ha, P.hf, P.hg, P.hh, P.hy, P.hz, O.eB, O.ez, G.eK, G.eR, G.eQ, G.eO, G.eN, G.eL, G.eP, G.eM])
_inherit_many(H.cI, [H.hx, P.fo, P.fp, P.fZ, P.fx, P.fE, P.fC, P.fz, P.fD, P.fy, P.fH, P.fG, P.fF, P.hd, P.fO, P.fi, P.fh, T.f6, G.fa, X.ev, X.eq, G.hm, G.eF]) _inherit_many(H.cI, [H.hx, P.fo, P.fp, P.fZ, P.fx, P.fE, P.fC, P.fz, P.fD, P.fy, P.fH, P.fG, P.fF, P.hd, P.fO, P.fi, P.fh, T.f6, G.fa, X.ev, X.eq, G.hm, G.eF])
_inherit_many(P.r, [H.bG, H.aQ, P.bO, H.dY]) _inherit_many(P.r, [H.bG, H.aQ, P.bO, H.dY])
_inherit_many(H.bG, [H.C, H.bS]) _inherit_many(H.bG, [H.C, H.bS])