Answers for "timer'"

7

timer

gotta keep track of how long my breaks are lol
Posted by: Guest on February-28-2021
1

timer

import time
def converter(hours, minutes, seconds):
  return hours * 3600 + minutes * 60 + seconds
time.sleep(converter(hrs, mins, secs))
print("time's up")
Posted by: Guest on August-12-2021
1

timer

import time
length = int(input('How many seconds: '))
time.sleep(length)
print('Time is up')
Posted by: Guest on February-07-2021
0

timer

TIME
Posted by: Guest on February-06-2021
0

timer

const oldDate = Date.parse("4/10/2020, 12:00:00");

const timeBetweenDates = (date1, date2) => {
  const date = new Date(date1 - date2);
  return {
    years: date.getYear() - 70,
    months: date.getMonth(),
    days: date.getDay(),
    hours: date.getHours(),
    minutes: date.getMinutes(),
    seconds: date.getSeconds(),
  }
}

const pre = document.getElementById("display");
setInterval(() => {
  pre.textContent = JSON.stringify(timeBetweenDates(Date.now(), oldDate), 0, 2);
}, 1000);
Posted by: Guest on July-16-2021
0

timer

58s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s758s7
Posted by: Guest on August-07-2021

Browse Popular Code Answers by Language