Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
The Variery of Timezones | Timezones and Daylight Savings Time (DST)
Dealing with Dates and Times in Python
course content

Contenido del Curso

Dealing with Dates and Times in Python

Dealing with Dates and Times in Python

1. Working with Dates
2. Working with Times
3. Timezones and Daylight Savings Time (DST)
4. Working with Dates and Times in pandas

The Variery of Timezones

In two previous sections, we worked with dates and times, without taking into account the timezone. While planning the meeting with foreigners, planning to fly to another country, or planning to watch some sporting event, you have to take this into account.

We might mention about tzinfo argument of the datetime object. But to handle timezones, we will use pytz library, which brings the tz database (also known as Olson database) in Python. At this time we will not use from library import something since there is no need in loading specific methods for pytz.

Let's start with the exploration of available timezones. There are two methods available in pytz: .all_timezones will return a list with all the available timezones in pytz, and .common_timezones will return only the common ones.

Tarea

Find the number of available (all) and common timezones in the pytz library. Print the name of the 100-th common timezone.

Tarea

Find the number of available (all) and common timezones in the pytz library. Print the name of the 100-th common timezone.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 3. Capítulo 1
toggle bottom row

The Variery of Timezones

In two previous sections, we worked with dates and times, without taking into account the timezone. While planning the meeting with foreigners, planning to fly to another country, or planning to watch some sporting event, you have to take this into account.

We might mention about tzinfo argument of the datetime object. But to handle timezones, we will use pytz library, which brings the tz database (also known as Olson database) in Python. At this time we will not use from library import something since there is no need in loading specific methods for pytz.

Let's start with the exploration of available timezones. There are two methods available in pytz: .all_timezones will return a list with all the available timezones in pytz, and .common_timezones will return only the common ones.

Tarea

Find the number of available (all) and common timezones in the pytz library. Print the name of the 100-th common timezone.

Tarea

Find the number of available (all) and common timezones in the pytz library. Print the name of the 100-th common timezone.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 3. Capítulo 1
toggle bottom row

The Variery of Timezones

In two previous sections, we worked with dates and times, without taking into account the timezone. While planning the meeting with foreigners, planning to fly to another country, or planning to watch some sporting event, you have to take this into account.

We might mention about tzinfo argument of the datetime object. But to handle timezones, we will use pytz library, which brings the tz database (also known as Olson database) in Python. At this time we will not use from library import something since there is no need in loading specific methods for pytz.

Let's start with the exploration of available timezones. There are two methods available in pytz: .all_timezones will return a list with all the available timezones in pytz, and .common_timezones will return only the common ones.

Tarea

Find the number of available (all) and common timezones in the pytz library. Print the name of the 100-th common timezone.

Tarea

Find the number of available (all) and common timezones in the pytz library. Print the name of the 100-th common timezone.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

In two previous sections, we worked with dates and times, without taking into account the timezone. While planning the meeting with foreigners, planning to fly to another country, or planning to watch some sporting event, you have to take this into account.

We might mention about tzinfo argument of the datetime object. But to handle timezones, we will use pytz library, which brings the tz database (also known as Olson database) in Python. At this time we will not use from library import something since there is no need in loading specific methods for pytz.

Let's start with the exploration of available timezones. There are two methods available in pytz: .all_timezones will return a list with all the available timezones in pytz, and .common_timezones will return only the common ones.

Tarea

Find the number of available (all) and common timezones in the pytz library. Print the name of the 100-th common timezone.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 3. Capítulo 1
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt