datetime tag

27 questions


1 answers
113 views
0
I want to know the current time in Python

Is there a module or function that tells you the current time?

2 years ago

1 answers
113 views
0
How to take a picture of Unix timestamp in 5 minutes

Based on now, we are creating a expires() function that returns Unix timestamp in 5 minutes.I didn't know what to do, so I made it like C++Is there a more Python way?Please help me if you know the mod...


2 answers
89 views
0
Please help me to re-form the data frame after counting the number of python data frames under certain conditions.

df = pd.DataFrame([data])The structure of the data table that comes out when you print df in is as follows.The code is recorded for each date, and I'd like to distinguish how many codes 3 and how many...


1 answers
142 views
0
How do I change a string like "0/0" to a date form?

I'd like to change strings such as January 20th to a date form, but I think it'll be difficult to use strptime() because the form has no zeros in front of it like July 4th.Can't we simply change strin...


2 answers
105 views
0
I want to know how to execute the conditions over time in Python.

I learned Python for the first time and started working on a project. There are still many things I don't know, so it's a meaningful activity to try, but I'm asking you because it's not progressing an...

2 years ago

2 answers
130 views
0
I have a question about float64 type -> datetime64 type conversion.

Hello, everyone I want to convert from float64 type to datetime, but it doesn't work as I thought.First of all, in float64 format, the value is 44616.107037! If expressed in yyyy/mm/ddhh/mm/mm/ss form...

2 years ago

1 answers
103 views
0
Differences between Python datetime and result values according to date class changes

It's a program that measures the time left until Christmas.import datetime as dta=dt.datetime.today()print(f) Today is {a.the month of the yearIt's day}.')xmas=dt.date(2022,12,25)su=xmas - dt.datetime...

2 years ago
« - 3 -

© 2024 OneMinuteCode. All rights reserved.