Python Time Module | Python Programming in Tamil | #21 смотреть онлайн
Python Time Module | Python Programming in Tamil | #21
In this video we are going to answer the following questions
Python Time Module ?
----------------------------------
Python Time Module
----------------------------------
Python is very useful in case of Time module.
Retrieve Time
To retrieve current time a predefined function localtime() is used. localtime() receives a parameter time.time() .
Here, time is a module,
time() is a function that returns the current system time in number of ticks since 12:00 am , January 1,1970. It is known as epoch.
Tick is simply a floating point number in seconds since epoch.
The time returned is a time structure which includes 9 attributes. These are summoned in the table given below
Attribute Description
tm_year Returns the current year
tm_mon Returns the current month
tm_mday Returns the current month day
tm_hour Returns the current hour.
tm_min Returns the current minute
tm_sec Returns current seconds
tm_wday Returns the week day
tm_yday Returns the year day.
tm_isdst It returns -1,0 or 1.
--------------------------
Formatted Time
--------------------------
Python also support formatted time. Proceed as follows:
Pass the time structure in a predefined function asctime(). It is a function defined in time module.
It returns a formatted time which includes Day ,month, date, time and year.
Print the formatted time.
time()
Returns floating point value in seconds since epoch i.e.,12:00am, January 1, 1970
asctime(time)
It takes the tuple returned by localtime() as parameter. It returns a 24 character string.
sleep(time)
The execution will be stopped for the given interval of time.
strptime(String,format)
It returns an tuple with 9 time attributes. It receives an String of date and a format.
gtime()/gtime(sec)
It returns struct_time which contains 9 time attributes. In case seconds are not specified it takes current second from epoch.
strftime(format)/strftime(format,time)
Returns time in particular format. If time is not given, current time in seconds is fetched.
You can download Python from https://www.python.org/
****************************************************************************
YouTube - https://www.youtube.com/channel/UC4CieHsFn0SAEJ_atjV2LfQ
Connect me @
facebook: https://www.facebook.com/profile.php?id=100009188744760
instagram: https://www.instagram.com/sriramasubramaniam/
sololearn: https://www.sololearn.com/Profile/10420852/
PlayList:
C programming - https://www.youtube.com/playlist?list=PLU5gSZMKiinqCipHFaEZw9cgtOP15KdSJ
Python Programming - https://www.youtube.com/playlist?list=PLU5gSZMKiinpXNVu0RpcjjJzm1qBNiAhW
Competitive Programming Python - https://www.youtube.com/playlist?list=PLU5gSZMKiinrQFNhcNUECAionrga_Qkrx
DataBase Concepts - https://www.youtube.com/playlist?list=PLU5gSZMKiinriR_VFyhT49hKaNMuZwKSy
canva - https://www.canva.com/join/simplified-punctual-kennel
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python Time Module | Python Programming in Tamil | #21» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.