Python Programming Tutorial - 33: Date & Time Functions (Part-1)

preview_player
Показать описание
In this tutorial we'll see how we can generate time stamps, view current date and time using the time(), localtime(), asctime() and mktime() methods of the time module in python.
Рекомендации по теме
Комментарии
Автор

You call your channel THE BAD TUTORIALS..but I have been through your SQL tutorials and now this. You sir should rename your channel to THE BEST TUTORIALS. Seriously, thank you so much.

namahshrestha
Автор

hi Madhur Bhatia 

first of all i would like to say that ur channel is very informative 
and has helped me with my project so far.
but i have seemed to have hit a dead wall 
as u see i need a person to input a date 
then add required no of days to it 
then check weather the end date has been crossed 

eg:
enter no of days of stay: 5
enter the expected day of arrival;14-3-4

customer  do note your check out date is 14-3-9

i basically need the code to run this program 

a quick answer to my quire would  be greatly expected

my name is jack by the way

makeurtriptoday
Автор

the time stamp that the function provides is precisely from 1-1-1970 5:30 to the current time and not from 12am, just checked it using the mktime() function

lyadhgod
Автор

What does time.localtime(time.time()) exactly give? Is it a tuple of some special form? because I tried using assignment operators in a tuple but they didn't work but this tuple has assignment operators in it's elements...Help

lyadhgod
Автор

Is there a way you can in put a time and add time to it? like its 3:45 and you add 2 hrs and 10 mins to it making it 5:55.

enjeb
Автор

None of the outputs is useable in any context.

RagHelen
visit shbcf.ru