Transpiled version (4307L) is out of date.
sclass WithTimestamp<A> extends Var<A> { long timestamp; Timestamp getTimestamp aka timestamp aka timeStamp() { ret timestamp == 0 ? null : Timestamp(timestamp); } *() {} *(long *timestamp, A value) { super(value); } *(A value) { this(now(), value); } Timestamp timestampObj() { ret timestamp == 0 ? null : Timestamp(timestamp); } long unixDate() { ret timestamp; } toString { ret toStringWithTimestamp(super.toString()); } S toStringQuoted() { ret toStringWithTimestamp(quote(super.toString())); } S toStringWithTimestamp(S s) { ret s + " at " + localDateWithSeconds(timestamp); } bool olderThanMinutes(double minutes) { ret elapsedMinutes_timestamp(timestamp) >= minutes; } bool olderThanSeconds(double seconds) { ret elapsedSeconds_timestamp(timestamp) >= seconds; } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment