Xem thảo luận
Cải thiện bài viết
Lưu bài viết
Xem thảo luận
Cải thiện bài viết
Lưu bài viết
Đọc
In order to get the current time of different time zones, we will be using the pytz
python library.
Bàn luận
Timezone được định nghĩa là một khu vực hoặc khu vực địa lý trong suốt thời gian tiêu chuẩn được quan sát. Về cơ bản nó đề cập đến thời gian địa phương của một khu vực hoặc quốc gia. Hầu hết các múi giờ được bù đắp từ thời gian phối hợp [UTC], tiêu chuẩn thế giới đối với múi giờ. Trong đơn đặt hàng để có thời gian hiện tại của các múi giờ khác nhau, chúng tôi sẽ sử dụng thư viện pytz
Python.
- Làm thế nào để có được thời gian hiện tại? – it helps to get the current local time
- Để có được thời gian địa phương, chúng ta có thể sử dụng mô -đun thời gian. Một số chức năng quan trọng của mô -đun thời gian – it helps to decide the format of the time to be used to display the time
localtime [] - nó giúp có được thời gian địa phương hiện tại
Strftime [Hồi%H H:%M:%S, t] - Nó giúp quyết định định dạng thời gian được sử dụng để hiển thị thời gian
- Làm thế nào để có được thời gian hiện tại trong các khu vực khác nhau? – it helps to get the standard UTC time zone
- Để có được thời gian hiện tại của một múi giờ cụ thể, cần phải sử dụng thư viện Python
pytz
. Một số lệnh quan trọng của thư viện PYTZ là – it helps to get the time zone of a particular location - UTC - Nó giúp có được múi giờ UTC tiêu chuẩn – it helps to get the date, time, utc standard in default format
- timezone [] - nó giúp có được múi giờ của một địa điểm cụ thể – it helps to convert the time of a particular time zone into another time zone
Examples:
Bây giờ [] - nó giúp có được ngày, thời gian, tiêu chuẩn UTC ở định dạng mặc định
astimezone [] - Nó giúp chuyển đổi thời gian của một múi giờ cụ thể thành múi giờ khác
import
time
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05306
Output:
11:58:19
curr_time
=
time.localtime[]
Examples:
‘
Chúng tôi sẽ có thời gian hiện tại địa phương của khu vực và các máy tính thời gian UTC tiêu chuẩn:
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05307
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05308
import
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05300
import
pytz
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
pytz
2pytz
3pytz
4pytz
5pytz
6
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
pytz
2pytz
9pytz
4pytz
5pytz
2
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05303
=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05305
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
pytz
2pytz
8pytz
9pytz
5import
1import
2import
3
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05306
=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05308
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05309
pytz
0pytz
3=
pytz
5
pytz
5time
2import
2import
3
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
import
4=
import
6
Examples:
‘
Chúng tôi sẽ có thời gian hiện tại địa phương của khu vực và các máy tính thời gian UTC tiêu chuẩn:
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05307
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05308
import
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05300
import
pytz
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05303
=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05305
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05306
=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05308
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05309
pytz
0pytz
3=
pytz
5
import
4=
import
6
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
pytz
2import
9pytz
4So sánh định dạng UTC và IST của các múi giờ của các khu vực khác nhau:
curr_time
4=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05308
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05309
curr_time
8curr_time
9=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05308
=
2pytz
0=
4=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05308
=
7pytz
0=
9=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05308
time.localtime[]
2pytz
0time.localtime[]
4=
Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +05308
time.localtime[]
7pytz
0time.localtime[]
9=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053001
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053002
=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053004
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053005
=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053007
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
pytz
2Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053031
pytz
0Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053034
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053036
pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053038
pytz
9Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053008
=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053010
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053045
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053036
pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053038
pytz
9pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053041
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
import
3Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053056
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053036
pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053038
pytz
9pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053041
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
import
3Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053067
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053036
pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053038
pytz
9pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053041
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
import
3Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+05305
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053078
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053036
pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053038
pytz
9pytz
5
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053041
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053035
import
3Output: UTC Format IST Format 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530 2020-03-31 11:21:13 UTC +0000 2020-03-31 16:51:13 IST +0530
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053011
=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+053013
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
14=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
16Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
17=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
19Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
20=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
22Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
23=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
25Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
26=
Output: UTC in Default Format : 2020-03-31 07:15:59.640418+00:00 IST in Default Format : 2020-03-31 12:45:59.692642+05:30 Date & Time in UTC : 2020:03:31 07:15:59 UTC+0000 Date & Time in IST : 2020:03:31 12:45:59 IST+0530
28