Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment of TI$ not yet implemented. #222

Open
cursorkeys opened this issue May 15, 2022 · 0 comments
Open

Assignment of TI$ not yet implemented. #222

cursorkeys opened this issue May 15, 2022 · 0 comments

Comments

@cursorkeys
Copy link
Contributor

cursorkeys commented May 15, 2022

getJiffyTime() {
var millis=new Date().getTime() - this.nullTime;
var jiffis = Math.floor(millis / (1000 / 60));

return jiffis % 5184000;

}

getTime() {
var millis=new Date().getTime() - this.nullTime;
millis = millis % 86400000;

var hours = Math.floor(millis / 3600000);
millis = millis - (hours * 3600000 );
var minutes = Math.floor(millis / 60000);
millis = millis - (minutes * 60000 );
var seconds = Math.floor(millis / 1000);
//millis = millis - (seconds * 1000 );
return [hours,minutes,seconds];

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant