Комментарии:
Interesting. Thanks a lot 😊 question 🙋
1. How do I convert this easily to Long number format?
2. Any updates on the large csv reading video?
Hi Lenin, thanks for the effort put in to take time out for us and making videos. For ascertaining a time in the past, instead of giving negative value to Days,Hours and Minutes, I would just minus the time_diff from the date_time like past_date_time = date_time - time_diff. This would give the same result I guess. Thanks again..
ОтветитьMy solution to Problem 1:
from datetime import date, timedelta
christmas = date(year=2019,month=12,day=25)
time_diff = timedelta(days = 7)
one_week_before_christmas = christmas - time_diff
one_week_before_christmas
My solution to Problem 2:
from datetime import datetime, timedelta
day_in_future = datetime(year = 2020, month = 5, day = 20, hour = 22, minute = 30)
day_in_past = datetime(year = 2019, month=1, day=1, hour=11)
time_diff = day_in_future - day_in_past
time_diff
So whats the difference between Datetime Module and Time Module ?
ОтветитьReq_date = curr_date - time_diff
ОтветитьHi, your explanation is easy to understand. My timedelta is in pandas.......pd.timedelta Is it the same as datetime.timedelta?
Ответитьthank you
Ответитьvery helpful
ОтветитьThank for the effort. But please make a video difference of two dates and difference results is only in days
ОтветитьThank you!
ОтветитьThank you so much for this video
ОтветитьThank you^^
ОтветитьSomeone likes Suits 🙂
Ответить