Skip to content

Commit d7dc67b

Browse files
Update dates_and_times.md
1 parent 4ee5b32 commit d7dc67b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

contrib/advanced-python/dates_and_times.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ The datetime module supplies classes for manipulating dates and times. The main
1919

2020
Example:
2121
```bash
22-
python
23-
Copy code
2422
import datetime
2523
# Get the current date and time
2624
now = datetime.datetime.now()
@@ -42,8 +40,6 @@ You can specify various format codes to dictate how the output string should be
4240

4341
Example:
4442
```bash
45-
python
46-
Copy code
4743
import datetime
4844

4945
now = datetime.datetime.now()
@@ -57,8 +53,6 @@ allows you to specify the format of the input string.
5753

5854
Example:
5955
```bash
60-
python
61-
Copy code
6256
import datetime
6357

6458
date_string = "2024-05-15 13:45:30"
@@ -72,8 +66,6 @@ number of days between two dates or adding a certain period to a date.
7266

7367
Example:
7468
```bash
75-
python
76-
Copy code
7769
import datetime
7870

7971
date1 = datetime.datetime(2024, 5, 15, 12, 0, 0)
@@ -96,8 +88,6 @@ operations across different time zones.
9688
9789
Example:
9890
```bash
99-
python
100-
Copy code
10191
import datetime
10292
import pytz
10393

@@ -115,8 +105,6 @@ or past dates based on a given date.
115105
116106
Example:
117107
```bash
118-
python
119-
Copy code
120108
import datetime
121109

122110
today = datetime.date.today()

0 commit comments

Comments
 (0)