ime tag

56 questions


1 answers
83 views
0
Which is more accurate, time.clock() or time.time()?

Which is more accurate to use, time.clock() or time.time() when time is measured in python?For example, #1. time.clock()start = time.clock()#Something codeelapsed = (time.clock() - start)#2. time.time...

2 years ago

1 answers
75 views
0
How do I subtract a day from a datetime object?

How do I subtract a day from a datetime.datetime object?For example,2016-01-21 15:36:43.058249 -> 2016-01-20 15:36:43.058249You have to take out a day like this.

2 years ago

1 answers
88 views
0
Convert time.structure_time object to datetime object

In the code I write, the first library receives time.structure_time and the second library receives datetime as a factor.How do I replace the time.structure_time object with the datetime object?

2 years ago

1 answers
107 views
0
To convert date to datetime?

datetime can be changed to time type using datetime.date()Is there a Python built-in function that replaces date with datetime?I know it's called datetime(date.year, date.month, date.day).What I want ...

2 years ago

1 answers
74 views
0
Run at a specific time (Python)

Raspberry Pi is coding the alarm time with Python, but it's so hard to write a sentence while. Please explain what went wrongimport timeimport datetimefrom grovepi import*import mathbuzzer_pin =2butto...

2 years ago

1 answers
131 views
0
Recognize the regularly updated DB data and refresh it on the web

Hello, I am developing the web with node.js.I'm using mariadb.Suppose you have data from a Web client group as shown below.A 10 20 50B 30 30 50C 85 92 33If you have updated to 10->100 in A here, Th...

2 years ago

1 answers
109 views
0
I'm studying basic Python. I have a question

We are trying to create an age notification system using the difference between dates. But the date mark that I've known so far is date mark like this (2019, 11, 30) through the date grave. But I want...

2 years ago

4 answers
71 views
0
Implementation of a web screen to monitor DB's change data in real time

Hello.I came to Hashcode to solve the blockage after a long time.Thank you always for your reply.Developing in node.js environment.You are using mysql, and you have created a msg, value column, for ex...


1 answers
104 views
0
To change string to datetime format

on the listJun 1 2005 1:33PMAug 28 1999 12:00AMThere are a lot of the same stringsYou want to replace all of this string with datetime format and save it to DB.How do I change a string to datetime?

2 years ago

1 answers
87 views
0
To find out how long the program has been running?

You want to create a program that runs only for 3 seconds if you type 3 before you run the program, and for 5 seconds if you type 5.How do I find out how many seconds have passed since the program sta...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.