Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
What Time is it Now? | Working with Times
Dealing with Dates and Times in Python
course content

Зміст курсу

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

What Time is it Now?

Let's expand the objects we will work with. In this section, we will learn how to work not only with dates but with times also. This time we will work with datetime class of the datetime library.

A datetime object has 6 additional arguments compared to a date object. These are hour (0-24), minute (0-60), second (0-60), microsecond (0-1000000), tzinfo, and fold (used for local times).

Завдання

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

Завдання

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 1
toggle bottom row

What Time is it Now?

Let's expand the objects we will work with. In this section, we will learn how to work not only with dates but with times also. This time we will work with datetime class of the datetime library.

A datetime object has 6 additional arguments compared to a date object. These are hour (0-24), minute (0-60), second (0-60), microsecond (0-1000000), tzinfo, and fold (used for local times).

Завдання

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

Завдання

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 1
toggle bottom row

What Time is it Now?

Let's expand the objects we will work with. In this section, we will learn how to work not only with dates but with times also. This time we will work with datetime class of the datetime library.

A datetime object has 6 additional arguments compared to a date object. These are hour (0-24), minute (0-60), second (0-60), microsecond (0-1000000), tzinfo, and fold (used for local times).

Завдання

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

Завдання

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Let's expand the objects we will work with. In this section, we will learn how to work not only with dates but with times also. This time we will work with datetime class of the datetime library.

A datetime object has 6 additional arguments compared to a date object. These are hour (0-24), minute (0-60), second (0-60), microsecond (0-1000000), tzinfo, and fold (used for local times).

Завдання

Import datetime class from datetime library. Print current date and time using .now() method of datetime class. Please note, that .now() returns local time and since the code is executed on a dedicated server it shows GMT.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 2. Розділ 1
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt