time tag

55 questions


1 answers
71 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.

1 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?

1 years ago

1 answers
103 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 ...

1 years ago

1 answers
70 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...

1 years ago

1 answers
127 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...

1 years ago

1 answers
106 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...

1 years ago

4 answers
70 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
101 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?

1 years ago

1 answers
83 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...

1 years ago

1 answers
84 views
0
How can I sleep 50 ms on Python program?

How do I get 50 ms sleep for Python program?The parameter for sleep is seconds, so it sleeps only in seconds. What method do you use to sleep for 50ms?

1 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.